Postfix SASL ERROR: Password not accepted from server: 535 5.7.0 Error: authentication failed: authentication failure

Q. I’ve recently changed email user account password using passwd command, for one my postfix email server which requires SMTP authentication before sending an email. Now following error is logged into my /var/log/maillog file:

ADVERTISEMENTS

ERROR: Password not accepted from server: 535 5.7.0 Error: authentication failed: authentication failure

How do I solve this problem under Red Hat enterprise Linux running Postfix with SASL authentication?

A. It appears that you are using Simple Authentication and Security Layer (SASL) framework for authentication and data security in Internet protocols. Cyrus SASL is a free and portable SASL library and it is used for SMTP authentication.

To set or change a user’s sasl password use saslpasswd2 command and not passwd command. saslpasswd2 is used by a server administrator to set a user’s sasl password for server programs and SASL mechanisms which use the standard libsasl database of user secrets. Type the following command at shell prompt:

# saslpasswd2 username

Now password should be updated and Postfix should accept the SMTP password.

🐧 Get the latest tutorials on SysAdmin, Linux/Unix, Open Source/DevOps topics:
CategoryList of Unix and Linux commands
File Managementcat
FirewallCentOS 8 OpenSUSE RHEL 8 Ubuntu 16.04 Ubuntu 18.04 Ubuntu 20.04
Network Utilitiesdig host ip nmap
OpenVPNCentOS 7 CentOS 8 Debian 10 Debian 8/9 Ubuntu 18.04 Ubuntu 20.04
Package Managerapk apt
Processes Managementbg chroot disown fg jobs killall kill pidof pstree pwdx time
Searchinggrep whereis which
User Informationgroups id lastcomm last lid/libuser-lid logname members users whoami who w
WireGuard VPNCentOS 8 Debian 10 Firewall Ubuntu 20.04

ADVERTISEMENTS
1 comment… add one
  • steven Jul 9, 2008 @ 9:37

    Hi all,

    This solution can not help. I have done the step above. I also type
    # sasldblistusers2

    to check the userlist.
    Am I miss some step?
    Any guys can help me, please?

    Thanks
    steven

Leave a Reply

Your email address will not be published.

Use HTML <pre>...</pre>, <code>...</code> and <kbd>...</kbd> for code samples.