2012年2月12日日曜日

postfix メモ

久しぶりにpostfixでハマったのでメモ

> mechanismを設定していても
smtp_sasl_mechanism_filter = plain,login

> このようなエラーが出て送信できない
status=deferred (SASL authentication failed;
cannot authenticate to server smtp.hogehoge.com: no mechanism available)

>ふと思い出してsasl-plainが足りなかったのでインストール
yum install cyrus-sasl-plain.x86_64 cyrus-sasl-md5.x86_64

なおmechanismを調べるにはEHLOを送信すると応答が帰ってくる
$ telnet smtp.hogehoge.com 587
EHLO kickitout.net
250-smtp.hogehoge
250-PIPELINING
250-SIZE 20971520
250-VRFY
250-ETRN
250-AUTH PLAIN LOGIN CRAM-MD5
250-AUTH=PLAIN LOGIN CRAM-MD5
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN