PostFix支持SMTP认证

安装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服务即可

posted @ 2017-03-06 20:37  reyzal  阅读(1004)  评论(0编辑  收藏  举报