0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Redmineメール設定

0
Last updated at Posted at 2026-02-12

基本的にネットにあるConfiguration.ymlのコピペでOK

返信用Gmailとかのアカウント作ったら、
アプリパスワードを作って、

設定用URL
https://myaccount.google.com/apppasswords

image.png

あとは
Redmineの実行ディレクトリに移動して、Configurationファイルを作ります

proc.sh
$ sudo vi config/configuration.yml
configration.yml
production:
  email_delivery:
    delivery_method: :smtp #smtpを使う場合はpostfixの設定しなくてOK sendmailは使う
    smtp_settings:
      enable_starttls_auto: true    # 追加
      address: "smtp.gmail.com"    # 変更
      port: 587    # 変更
      domain: "smtp.gmail.com"    #  変更
      authentication: :plain    # 追加
      user_name: "********@gmail.com"
      password: "********"    # アプリ用パスワード

同じディレクトリにあるConfigration.yml.exmpleにGmailの設定がそのまんま乗ってるんだよね。
それでOK

サーバーの587ポートを開けるのを忘れないこと。開けないとファイアウォールにブロックされるよん

公式ドキュメントにはMTAのセットアップしてください。
みたいに書いてるけど、それ

configuration.yml
delivery_method :sendmail

にする場合であって、普通は要らないっぽいのよね。

最後にApacheの再起動

$ sudo service apache2 restart

コレでサーバーの設定は終わり。

Redmineの表側の設定。

WS000006.JPG

後は管理ページのホスト名を今使ってるドメイン名に修正しておきましょう(FQDNね)
これでredmineサーバーからメールが届くようになるはずです!

参考文献

Redmine 6.1 をUbuntu 24.04 LTSにインストールする手順
Redmine のメール設定

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?