1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Redmine+Postfix+SASL+CRAM-MD5で通知メールを飛ばす

Last updated at Posted at 2016-01-15

Redmineのインストール後、メール通知を飛ばす際に手こずったので以下にメモします。
(とりあえず動くレベルでの設定なのであまり参考ならずすみません)

インストールすべきrpm

postfix
cyrus-sasl-md5

IDとパスワードの設定

saslpasswd2 -u ドメイン ユーザ名
/etc/postfix/main.cf
myhostname                   = (Redmineサーバのホスト名。例:redmine.hogehoge.jp)
mydomain                     = (Redmineサーバのドメイン名。例:hogehoge.jp)
inet_protocols               = ipv4
mydestination                = $myhostname, localhost.$mydomain, localhost
mynetworks                   =  127.0.0.0/8
smtpd_sasl_auth_enable       = yes
smtpd_sasl_type              = cyrus
smtpd_sasl_path              = smtpd
broken_sasl_auth_clients     = yes
smtpd_sasl_local_domain      = $mydomain
smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination
configuration.yml
production:
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      address:        "localhost"
      port:           25
      domain:         "RedmineサーバのFQDN"
      authentication: :cram_md5
      user_name:      ユーザ名
      password:       パスワード

  rmagick_font_path: /usr/share/fonts/ipa-pgothic/ipagp.ttf
/etc/sasl2/smtpd.conf
pwcheck_method: saslauthd
mech_list: plain login cram-md5
chown postfix /etc/sasldb2
service postfix start
chkconfig postfix on
service saslauthd start
chkconfig saslauthd on
1
1
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
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?