Postfixのmain.cfの設定を以下にして、Gmailにkonata.netのアカウントを追加しようとしたら、失敗する。

smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $mydomain
smtpd_sasl_security_options = noplaintext, noanonymous
smtpd_sasl_authenticated_header = yes
smtpd_sasl_type = cyrus
smtpd_sasl_path = smtpd

ログはこんな感じ。
ーーーーーーーーーーーーーーーーーーーーーーーーーーーー
Aug 11 21:41:14 konata postfix/smtpd[11110]: connect from mail-vx0-f182.google.com[209.85.220.182]
Aug 11 21:41:14 konata postfix/smtpd[11110]: setting up TLS connection from mail-vx0-f182.google.com[209.85.220.182]
Aug 11 21:41:14 konata postfix/smtpd[11110]: Anonymous TLS connection established from mail-vx0-f182.google.com[209.85.220.182]: TLSv1 with cipher RC4-SHA (128/128 bits)
Aug 11 21:41:15 konata postfix/smtpd[11110]: warning: SASL authentication failure: incorrect digest response
Aug 11 21:41:15 konata postfix/smtpd[11110]: warning: mail-vx0-f182.google.com[209.85.220.182]: SASL CRAM-MD5 auth entication failed: authentication failure
Aug 11 21:41:15 konata postfix/smtpd[11110]: disconnect from mail-vx0-f182.google.com[209.85.220.182]
ーーーーーーーーーーーーーーーーーーーーーーーーーーーー

以下にしたら通った。
どうも、Gmailからの接続の場合、SSLは必須だけれど、PLAIN認証でなければ通らない様子。

smtpd_sasl_security_options = noanonymous

ん~、どうしようかなぁ……

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です