(使用pwcheck_method: auxprop,即不是使用系统/etc/passwd中的帐号密码)
参考:
1。OReilly - Postfix The Definitive Guide
2。http://wiki.debian.org.tw/index.php/Postfix-SASL
3。http://www.postfix.org/SASL_README.html
1。安装好postfix系统(略)
2。apt-get install postfix-tls sasl2-bin libsasl2-modules
3。mkdir -p /etc/postfix/sasl
4。echo "pwcheck_method: auxprop" >
/etc/postfix/sasl/smtpd.conf
5。在/etc/postfix/mail.cf中加入
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_security_options = noanonymous
smtpd_recipient_restrictions = permit_sasl_authenticated,
permit_mynetworks,
check_relay_domains, reject_unauth_destination
smtpd_client_restrictions = permit_sasl_authenticated
6。修改/etc/postfix/master.cf(也就是说 Postfix 不要以 chroot 樱
把smtp inet n - - - - smtpd
改为:
smtp inet n - n - - smtpd
7。chown postfix:sasl /etc/sasldb2
8。chmod 440 /etc/sasldb2
9。saslpasswd2 -c -u `postconf -h myhostname` test(建立一个帐号test)
(使用该命令后,会提示你输入这个帐号的密码,有点象linux的添加用户命令adduser)
10。/etc/init.d/postfix restart
然后就可以在 foxmail 中用这个帐号测试
但是
如果saslpasswd2 -c -u xxxxx.com test的话
那么foxmial中的帐号就要写全为test@xxxxx.com
【版权声明】
本站部分内容来源于互联网,本站不拥有所有权,不承担相关法律责任。如果发现本站有侵权的内容,欢迎发送邮件至masing@13sy.com 举报,并提供相关证据,一经查实,本站将立刻删除涉嫌侵权内容。