Ubuntu EC2: Postfix-SASL Error: No worthy mech

0

Hi all,

I've just migrated my EC2 instance from RHEL to new Ubuntu instance and had to reconfigure our mail system. I've set up Postfix service to relay mails to SES, using postmapped sasl_password DB containing SES credentials.

But now I've got this error when trying to send mail out via 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

The RHEL instance had not have such problem before.

Here is my mail relay config in /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

I've searched the web and AWS forums but still quite not found any successful solution.
I've installed sasl2-bin (Cyrus SASL2), but the results are still the same.

(apt-get could not find cyrus-sasl2-dbg or modules packages)

Any idea please?

Best Regards,
Chakrit W.

1개 답변
0

Well, I've figured this out. (After trying dpkg-reconfigure postfix without success) It seems I missed this line in /etc/postfix/main.cf configuration:

smtp_sasl_security_options = noanonymous

Thanks to this reference: http://www.postfix.org/SASL_README.html#client_sasl_policy

답변함 5년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠