【问题标题】:Amazon EC2 Ubuntu Postfix-SASL Error: No worthy mechs foundAmazon EC2 Ubuntu Postfix-SASL 错误:找不到有价值的机甲
【发布时间】:2019-06-07 05:55:15
【问题描述】:

我刚刚将我们的 EC2 实例从 RHEL 迁移到新的 Ubuntu 实例,并且不得不重新配置我们的邮件系统。我已经设置了 Postfix 服务来将邮件中继到 SES,使用包含 SES 凭据的 postmapped sasl_password DB,与以前的系统相同。

但现在我在尝试通过 SES 发送邮件时遇到此错误:

postfix/smtp[16253]: warning: SASL authentication failure: No worthy mechs found
postfix/smtp[16253]: B8B0541007: SASL authentication failed; cannot authenticate to server email-smtp.us-east-1.amazonaws.com[54.204.36.221]: no mechanism available

RHEL 实例之前没有出现过这样的问题。

这是我在 /etc/postfix/main.cf 中的邮件中继配置:

relayhost = [email-smtp.us-east-1.amazonaws.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_use_tls = yes
smtp_tls_security_level = encrypt
smtp_tls_note_starttls_offer = yes
smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt

我搜索了网络和 AWS 论坛,但仍然没有找到任何成功的解决方案。 我已经安装了 sasl2-bin (Cyrus SASL2),但是结果还是一样。

(apt-get 找不到 cyrus-sasl2-dbg 或有关此问题的主题中解决的其他 Ubuntu 软件包)

有什么想法吗?

最好的问候,

Chakrit W.

【问题讨论】:

    标签: ubuntu amazon-ec2 amazon-ses postfix-mta sasl


    【解决方案1】:

    嗯,我已经想通了。 (在尝试 dpkg-reconfigure postfix 没有成功之后)似乎我错过了 /etc/postfix/main.cf 配置中的这一行:

    smtp_sasl_security_options = noanonymous
    

    感谢此参考:http://www.postfix.org/SASL_README.html#client_sasl_policy

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-10-09
      • 2016-04-14
      • 2013-11-14
      • 2014-04-03
      • 2015-09-02
      • 2018-11-11
      相关资源
      最近更新 更多