• Skip to primary navigation
  • Skip to main content
sharadchhetri

sharadchhetri

Tutorials On Linux, Unix & Open Source

  • Home
  • Linux Commands
  • Resources
    • Learn Linux
  • My WordPress plugins

Postfix + SES : SASL authentication failed

September 26, 2015 by Sharad Chhetri

After configuring AWS SES service with Postfix, you may have found error in logs – SASL authentication failed . The error will not allow you to send email from server by using AWS SES service.

Reasons For Error : SASL authentication failed

1. Incorrect Credential :
(a) Many times the “SASL authentication failed” error happened when we use incorrect credentials (Secret Keys and Access Keys). Hence, cross check the correct credentials.

(b) Check the IAM user which Access/Secret Keys you are using for SES . The IAM user must be allowed for SES service. (Reference : http://docs.aws.amazon.com/ses/latest/DeveloperGuide/control-user-access.html )

2. Package dependency issue :
Generally, it is also due to lack of installation of dependency packages. These packages are for supporting SASL mechanism in postfix. In end of this post, we have given sample output. Find this line – “warning: SASL authentication failure: No worthy mechs found”. It shows the problem with unavailable SASL mechanism supporting package in system.

Hence, install the dependency packages –

In CentOS / RHEL :

yum install cyrus-sasl-plain postfix

In Ubuntu/Debian :

sudo apt-get install Cyrus-sasl2

Given below is sample output from postfix maillog with error :

Jul 13 10:02:14 ip-10-0-0-5 postfix/smtp[32416]: CCBCE91E238: SASL authentication failed; cannot authenticate to server email-smtp.us-east-1.amazonaws.com[54.235.101.205]: no mechanism available
Jul 13 10:02:14 ip-10-0-0-5 postfix/smtp[32416]: warning: SASL authentication failure: No worthy mechs found
Jul 13 10:02:14 ip-10-0-0-5 postfix/smtp[32416]: CCBCE91E238: to=admin@example.com, relay=email-smtp.us-east-1.amazonaws.com[23.21.91.54]:25, delay=15, delays=0.01/0.02/15/0, dsn=4.7.0, status=deferred (SASL authentication failed; cannot authenticate to server email-smtp.us-east-1.amazonaws.com[23.21.91.54]: no mechanism available)

Share this:

  • Twitter
  • Facebook
  • More
  • Print
  • Email
  • LinkedIn
  • Reddit
  • Tumblr
  • Pinterest
  • Pocket
  • Telegram
  • WhatsApp
  • Mastodon

Related posts:

  1. hash:/etc/postfix/virtual is unavailable. open database /etc/postfix/virtual.db: No such file or directory
  2. How to change smtp port number 25 in postfix
  3. How to delete mail queue in Postfix
  4. In ESX , passwd: authentication information cannot be recovered
  5. RSA key authentication in Linux : Passwordless login
  6. How to configure vsftpd server with virtual user mysql authentication in CentOS 6
  7. Setup CRAM-MD5 authentication for mailing in owncloud Ubuntu
  8. lock user login after failed login attempts in Red Hat 6.x and CentOS 6.x
  9. error command ‘gcc’ failed with exit status 1 in Ubuntu
  10. VirtualBox Error: Failed to open/create the internal network

Filed Under: Linux Tagged With: aws, postfix

Reader Interactions

Comments

  1. Tarun says

    January 31, 2018 at 10:52 am

    same here cheers ๐Ÿ™‚

    • Sharad Chhetri says

      February 1, 2018 at 3:52 pm

      Thank you for valuable feedback !
      Regards
      Sharad

  2. Rowan says

    August 19, 2016 at 1:41 pm

    Thanks for the CentOS yum command, saved me some frustration!

Copyright © 2023 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From Bharat.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy