Postfix + SASL配置要点

1、看一下/etc/default/saslauthd里,一般都会告诉你针对Postfix的OPTIONS配置,改一下;

2、确认smtpd启动时是否chroot,与saslauthd配置相符,在/etc/postfix/master.cf里改一下;

3、如果没有/etc/postfix/sasl/smtpd.conf,建一个,内容如下:
pwcheck_method: saslauthd
mech_list: PLAIN LOGIN

4、配置postfix验证设置,vi /etc/postfix/main.cf
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination

recipient restrictions看情况而定吧

结束

猜你喜欢

转载自nkadun.iteye.com/blog/1782181