Postfix 电子邮件传输不起作用-SASL 身份验证失败

Postfix 电子邮件传输不起作用-SASL 身份验证失败

我想使用 postfix MTA 从我的 Nagios 监控系统向联系人发送电子邮件。但是,如果要发送邮件,我收到以下错误

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 和 generic 是 postmap 并且所有必要的包都已安装

主文件:

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_密码:

mail.server.com user@password

非常感谢大家的回答!

答案1

sasl_passwd 使用 : 而不是 @ 来分割用户名和密码

mail.server.com user:password

查看 masegaleoh 的评论

相关内容