postfixで送受信できない
/var/log/maillogを確認すると
以下のエラーが定期的に発生している
May 22 15:19:56 dti-vps-srv30 postfix/smtpd[56469]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms
May 22 15:19:56 dti-vps-srv30 postfix/smtpd[56469]: fatal: no SASL authentication mechanisms
May 22 15:19:57 dti-vps-srv30 postfix/master[19834]: warning: process /usr/libexec/postfix/smtpd pid 56469 exit status 1
May 22 15:19:57 dti-vps-srv30 postfix/master[19834]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
May 22 15:21:32 dti-vps-srv30 postfix/smtpd[18314]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms
May 22 15:21:32 dti-vps-srv30 postfix/smtpd[18314]: fatal: no SASL authentication mechanisms
May 22 15:21:33 dti-vps-srv30 postfix/master[19834]: warning: process /usr/libexec/postfix/smtpd pid 18314 exit status 1
May 22 15:21:33 dti-vps-srv30 postfix/master[19834]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
May 22 15:27:56 dti-vps-srv30 postfix/smtpd[11579]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms
May 22 15:27:56 dti-vps-srv30 postfix/smtpd[11579]: fatal: no SASL authentication mechanisms
May 22 15:27:57 dti-vps-srv30 postfix/master[19834]: warning: process /usr/libexec/postfix/smtpd pid 11579 exit status 1
May 22 15:27:57 dti-vps-srv30 postfix/master[19834]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling
CentOSで標準実行されているsendmailをpostfixへ変更
posifixをインストール
インストール手順は省略
# /usr/sbin/alternatives --config mta
There are 2 programs which provide 'mta'.
Selection Command
-----------------------------------------------
*+ 1 /usr/sbin/sendmail.sendmail
2 /usr/sbin/sendmail.postfix
Enter to keep the current selection[+], or type selection number: 2
このあと、sendmailの処理を止めて、自動起動をoffにする
# /etc/rc.d/init.d/sendmail stop
# chkconfig sendmail off
逆に、postfixを起動および自動起動設定
# /etc/rc.d/init.d/postfix start
# chkconfig postfix on
また、psでpostfixを確認しようとしても確認できない
CMDのなかで、[master]がpostfixに相当すると思われる