yum install -y postfix dovecot saslauthd*
saslauthd -v
MECH=pam
service saslauthd start
/usr/sbin/testsaslauthd –u user –p ‘password’
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = ''
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
broken_sasl_auth_clients=yes
smtpd_client_restrictions = permit_sasl_authenticated
smtpd_sasl_security_options = noanonymous
7. 启动postfix
service postfix start
telnet 127.0.0.1 25
输入:
ehlo 163.com
如果在返回的列表中有:
250-AUTH GSSAPI NTLM LOGIN PLAIN
250-AUTH=GSSAPI NTLM LOGIN PLAIN