PostfixでSMTP-Auth実装する設定

1./etc/postfix/mail.cfにPostfixでSMTP-Authを使うための下記の設定を追加

# vi /etc/postfix/mail.cf
# SMTP-Auth (2004.07.05)
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sasl_local_domain = $myhostname
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination

2./usr/lib/sasl2/smtpd.confに下記を設定

# vi /usr/lib/sasl2/smtpd.conf
pwcheck_method: saslauthd # saslauthdが提供する認証データを利用する
mech_list: plain login # 認証メカニズムはPLAIN方式とLOGIN方式に限定する

3.saslauthdを起動

# saslauthd -a shadow

参考
https://www.stackasterisk.jp/tech/systemConstruction/postfix02_02.jsp

Share on Facebook0Share on Google+0Tweet about this on TwitterBuffer this pageEmail this to someone