我想使用后缀MTA从我的Nagios监控系统发送电子邮件到联系人。 但是,我得到follwing错误,如果邮件将被发送
May 28 16:20:29 op5-system postfix/qmgr[1932]: EFF031FFE36: from=<[email protected]>, size=1040, nrcpt=1 (queue active) May 28 16:20:29 op5-system postfix/error[4062]: EFF031FFE36: to=<[email protected]>, relay=none, delay=2083, delays=2082/0.08/0/0.03, dsn=4.7.3, status=deferred (delivery temporarily suspended: SASL authentication failed; server mail.server.com[10.0.7.3] said: 535 5.7.3 Authentication unsuccessful)
密码是正确的,文件sasl_passwd和通用的postmap和所有必要的软件包被安装
main.cf:
smtp_sasl_auth_enable = yes smtp_sasl_mechanism_filter = plain, login, ntlm smtp_sasl_security_options = noanonymous smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_generic_maps = hash:/etc/postfix/generic relayhost = mail.server.com
sasl_passwd:
mail.server.com user@password
非常感谢每一个答案!
sasl_passwd使用:而不是@来分割用户名和密码
mail.server.com user:password
请参阅masegaleoh的评论