• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

AI, Linux, Cloud and DevOps

  • Home
  • Resources
    • Learn Linux
    • Articles
  • My Projects & Work
    • My Nagios Plugin
    • My Dockerhub Repo
    • My WordPress plugins
    • My Github Repos
  • Facebook Page
  • Contact
  • Privacy Policy
  • About Me
You are here: Home / Articles / Postfix + SES : SASL authentication failed

Postfix + SES : SASL authentication failed

September 26, 2015 by Sharad Chhetri 3 Comments

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 :https://docs.aws.amazon.com/ses/latest/dg/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.

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:

  • Share on X (Opens in new window) X
  • Share on Facebook (Opens in new window) Facebook
  • More
  • Print (Opens in new window) Print
  • Email a link to a friend (Opens in new window) Email
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Reddit (Opens in new window) Reddit
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon

Articles

create iso image of directory in linux
ClamAV-clamd av-scanner FAILED: CODE(0x2286dd0)
Forward all incoming emails to other SMTP server or gateway
Create and Remove AWS EC2 key pair by using command line
semanage command not found in CentOS 6 and RHEL 6
How to setup Jenkins Credentials for Git repo access
Install MariaDB Server 10 on CentOS 7 and RHEL 7 by using yum
create noreply email id in postfixadmin mysql database
How to upgrade Mariadb 5.5 to Mariadb 10.0 on CentOS 7 / RHEL 7
How To Install pip3 / pip2 In Linux
Find installed and enabled apache module in Debian/Ubuntu
Learn Linux Date Command With Examples
hash:/etc/postfix/virtual is unavailable. open database /etc/postfix/virtual.db: No such file or directory
Nagios monitoring on AWS Autoscaling group instances
How to set Name of EC2 instance by aws cli

Filed Under: Articles Tagged With: aws, postfix

Reader Interactions

Comments

  1. Tarun says

    January 31, 2018 at 10:52 am

    same here cheers ๐Ÿ™‚

    Reply
    • Sharad Chhetri says

      February 1, 2018 at 3:52 pm

      Thank you for valuable feedback !
      Regards
      Sharad

      Reply
  2. Rowan says

    August 19, 2016 at 1:41 pm

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

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Primary Sidebar

Articles

  • Install n8n docker in Ubuntu for practicing
  • Bash Script: MySQL Database backup to AWS S3
  • Automate no touch Jenkins setup wizard on docker (jcac)
  • How to run and configure Jenkins in Docker container
  • Complete Guide: How to install Nagios Monitoring on AlmaLinux / Rocky Linux
  • Install KVM on Ubuntu 24.04 LTS ( Bash Script )
  • How to install GIMP 2.10 on Ubuntu / Debian
  • 5 ways to check Ubuntu version of system (commands and GUI)
  • How To Solve Forgot MySQL / MariaDB Root Password
  • Create Self Hosted Build Agent Docker Image for Azure DevOps

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

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