サーバー
Redmine(2.0.3)の通知メールをGmail経由で送ろうとしてハマった
こんにちは、ころすけ(@wg_koro)です。
プライベートでのプロジェクトやタスク管理にはRedmine(バージョン2.0.3)を使っています。
Redmine.JP Redmineはwebベースのプロジェクト管理ソフトウェアです。タスク管理、進捗管理、情報共有が行えます。ソフトウェア開発やwebサイト制作などITプロジェクトでの利用に最も適していますが、それ以外の業務でも幅広く活用できます。 |
このRedmineの通知メールはGmail経由で送信しているんですが、2.0.3を入れた際、設定で少しつまづいたのでメモしておきます。
config/configuration.yml
つまづいたのはこのファイル。 configuration.yml.example にはGmail経由での設定例が載っていますが、これをそのまま使うと動きません。
1 2 3 4 5 6 7 8 9 10 11 12 |
production: email_delivery: delivery_method: :smtp smtp_settings: tls: true enable_starttls_auto: true address: "smtp.gmail.com" port: 587 domain: "smtp.gmail.com" # 'your.domain.com' for GoogleApps authentication: :plain user_name: "hogehoge@gmail.com" password: "passwordpassword" |
これ↑を、↓のように変える必要があります。
1 2 3 4 5 6 7 8 9 10 11 12 |
production: email_delivery: delivery_method: :smtp smtp_settings: #tls: true # ここのtlsの行は削除する enable_starttls_auto: true address: "smtp.gmail.com" port: 587 domain: "smtp.gmail.com" # 'your.domain.com' for GoogleApps authentication: :login # plain → loginへ変更 user_name: "hogehoge@gmail.com" password: "passwordpassword" |
あと、同ファイルの下から5行目くらいに production: という行があるので、これをコメントアウト。
1 2 3 |
# specific configuration options for production environment # that overrides the default ones production: # ←この行を#つけてコメントアウト |
これでGmail経由で通知を送信できるようになりました(・∀・)
Redmine、今は手っ取り早くApache + Passengerで動かしているけど、nginx + unicornのほうが速そうだなー・・・。時間できたら変更してみようっと。
関連記事
2012年08月29日 | Posted in サーバー | 1 Comment »
[…] 環境:Redmine 2.3.2 参考サイト: redmine.jp「メール通知のためのconfiguration.ymlの設定」 Azrae「Redmine(2.0.3)の通知メールをGmail経由で送ろうとしてハマった」 […]