LoginSignup
6
6

More than 5 years have passed since last update.

POP3sをつかった、Remineのチケットを登録

Posted at

メールでRedmineにチケットを登録したいが、IMAPが使えないメールサーバなのです

IMAPができなくて、POP3sでメールを取り込んでいます。
Remineにメールでチケットを登録したくなったのでcronを仕込んだ。
redmine:e-mail:receive_pop3 と、ssl=1のオプションを使うとうまくいく。

匿名ユーザで使いたかったので「allow_anonymous=1 unknown_user=accept no_permission_check=1」も追加しています。

bundle exec rake -f /var/lib/redmine/Rakefile redmine:email:receive_pop3 RAILS_ENV="production" port=995 ssl=1 host=[pop3サーバ] username=[pop3のユーザ] password=[パスワード] project=[登録したいプロジェクトの識別子] allow_anonymous=1 unknown_user=accept no_permission_check=1

これをcronで10分間隔で実行しています。
Zabbixなどの監視ツールからメールを出して自動登録などが可能となってちょっとハッピー

環境

Redmine version は 2.6.0.stable です

6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6