全部博文(534)
分类: LINUX
2013-08-15 15:58:37
步骤:
1.vi /etc/postfix/main.cf (只有保留如下内容)
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_type = cyrus
smtp_sasl_security_options = noanonymous
2. vi /etc/postfix/sasl_passwd
[hq.smtp.xx.cn]:25 username:password (登陆smtp的用户名和口令)
3.生成Berkeley DB格式文件
postmap /etc/postfix/sasl_passwd
4.重启postfi
/etc/init.d/postfix restart
5.测试
mail 123456 | mail -s test