安装cyrus-sasl
yum -y install cyrus-sasl*
启动服务,开机启动
service saslauthd start chkconfig saslauthd on
配置postfix,添加到/etc/postfix/main.cf末尾
# smtp 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
重启postfix服务即可