「fatal: no SASL authentication mechanisms」 によりPostfixでSMTP Authによるメール送信ができない
「fatal: no SASL authentication mechanisms」エラーが発生しPostfixでSMTP Authのメール送信できない現象について紹介します。
現象
SMTP Auth を利用してメール送信すると、/var/log/maillog に下記のワーニングが記録されます。
Aug 26 14:45:21 ip-00-00-00-00 postfix/smtpd[9642]: connect from ac157190.ppp.asahi-net.or.jp[183.77.157.190]
Aug 26 14:45:21 ip-00-00-00-00 postfix/smtpd[9642]: warning: SASL authentication failure: Internal Error -4 in server.c near line 1757
Aug 26 14:45:21 ip-00-00-00-00 postfix/smtpd[9642]: warning: SASL authentication failure: Internal Error -4 in server.c near line 1757
Aug 26 14:45:21 ip-00-00-00-00 postfix/smtpd[9642]: warning: SASL authentication failure: Internal Error -4 in server.c near line 1757
Aug 26 14:45:21 ip-00-00-00-00 postfix/smtpd[9642]: warning: xsasl_cyrus_server_get_mechanism_list: no mechanism available
Aug 26 14:45:21 ip-00-00-00-00 postfix/smtpd[9642]: fatal: no SASL authentication mechanisms
Aug 26 14:45:22 ip-00-00-00-00 postfix/master[9639]: warning: process /usr/libexec/postfix/smtpd pid 9642 exit status 1
Aug 26 14:45:22 ip-00-00-00-00 postfix/master[9639]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
原因
sasl認証で必要なパッケージがインストールされていない可能性があります。
対策
以下のパッケージをインストールします。
Plain認証を利用する場合は
をインストールします。
コマンド例
su
.....
yum install cyrus-sasl-plain
yum install cyrus-sasl-md5
著者
かつて日本を代表したスーパーエンジニア (自称)
ハードウェア、電気設備、ガーデニング関係の記事を担当。