Email Not Sending with "Use SASL SMTP authentication?" Yes

Postfix server not sending emails when "Use SASL SMTP authentication?" to "Yes". I have tried a lot and gone through various Virtualmin Forums and Support, but still not able to find the solution. Please find below the Mail log.

Jun 5 21:53:20 server postfix/smtpd[1591459]: connect from unknown[45.133.1.246] Jun 5 21:53:21 server postfix/smtpd[1591459]: warning: unknown[45.133.1.246]: SASL LOGIN authentication failed: authentication failure Jun 5 21:53:21 server postfix/smtpd[1591459]: disconnect from unknown[45.133.1.246] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4 Jun 5 21:55:25 server postfix/smtpd[1591785]: connect from unknown[45.133.1.246] Jun 5 21:55:25 server postfix/smtpd[1591785]: warning: unknown[45.133.1.246]: SASL LOGIN authentication failed: authentication failure Jun 5 21:55:26 server postfix/smtpd[1591785]: disconnect from unknown[45.133.1.246] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4 Jun 5 21:57:28 server postfix/smtpd[1596903]: connect from unknown[45.133.1.246] Jun 5 21:57:29 server postfix/smtpd[1596903]: warning: unknown[45.133.1.246]: SASL LOGIN authentication failed: authentication failure Jun 5 21:57:29 server postfix/smtpd[1596903]: disconnect from unknown[45.133.1.246] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4

On checking saslauthd status can see below,

Jun 05 22:09:59 server.whitecloudnetwork.com saslauthd[1613644]: pam_unix(smtp:auth): check pass; user unknown Jun 05 22:09:59 server.whitecloudnetwork.com saslauthd[1613644]: pam_unix(smtp:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= Jun 05 22:10:01 server.whitecloudnetwork.com saslauthd[1613644]: DEBUG: auth_pam: pam_authenticate failed: Authentication failure

While trying usermod -a -G sasl postfix, it shows below,

usermod: existing lock file /etc/shadow.lock with an invalid PID '1020143' usermod: cannot lock /etc/shadow; try again later.

Ran through almost all the answers related to the above errors, but couldn't resolve it.

Any help?

Thanks in advance.

Status: 
Closed (fixed)
Virtualmin version: 
6.16
Webmin version: 
1.973

Comments

Assigned: ยป Unassigned

First, please see below node,

https://www.virtualmin.com/node/58454

Solution - Need to change smtp_sasl_auth_enable = yes to smtpd_sasl_auth_enable = yes manually in postfix main.cf file. Dont configure it from SMTP Authentication and Encryption option.

Also, I modified below to fix SMTP relay error,

"smtpd_relay_restrictions = permit_sasl_authenticated permit_mynetworks defer_unauth_destination permit_mx_backup permit_inet_interfaces"

These all solved my issue. Hope it helps someone.

Thanks, Arun