あーかいぶすハイディフィニション

ここはもう更新しとらんのじゃ

redmine でチケットを編集した時にメールが送れないんだけど原因は postfix でもなく dovecot だったすんませぇーん!

タイトルなげえ!
さくらの VPS でサーバメンテナンスした後に、サーバ再起動したら「Redmine でチケット更新したら連絡メールが来てたのに、ここ最近こないんですけお……」と連絡を受けて調べたらあばばったお話。

config/configuration.yml

メール送信部分はこんなん、デフォルトやね。

# default configuration options for all environments
default:
  # Outgoing emails configuration (see examples above)
  email_delivery:
    delivery_method: :smtp
    smtp_settings:
      address: "localhost"
      port: 25
/var/log/maillog

なんか出てた

Sep 16 15:06:59 test-server postfix/smtpd[2376]: connect from localhost[::1]
Sep 16 15:06:59 test-server postfix/smtpd[2376]: warning: SASL: Connect to private/auth failed: Connection refused
Sep 16 15:06:59 test-server postfix/smtpd[2376]: fatal: no SASL authentication mechanisms
Sep 16 15:07:00 test-server postfix/master[1793]: warning: process /usr/libexec/postfix/smtpd pid 2376 exit status 1
Sep 16 15:07:00 test-server postfix/master[1793]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
/etc/postfix/main.cf

先輩まずいですよ! dovecot 認証が必要な設定じゃないですか!

smtpd_sasl_auth_enable = yes
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_local_domain = $mydomain
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
dovecot

あっ。

[root@test-server ~]# /sbin/chkconfig --list|grep dovecot
dovecot        	0:off	1:off	2:on	3:on	4:on	5:on	6:off

じゃけん起動しましょうね〜。

[root@test-server ~]# /etc/init.d/dovecot start

で、ようやく解決しましたとさ。