Environment: Postfix 3.3, Dovecot 2.2, Node.js – Postfix/Dovecot is running next to a Node.js app inside of a Digital Ocean Droplet.
Question: With SASL on Thunderbird can connect to Postfix but Node.js app can’t. With SASL off the reverse is true. Why is this?
Background: With these 4 lines added to
main.cf Thunderbird connects up to Postfix/Dovecot and sends and receives normally.
smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth smtpd_sasl_security_options = noanonymous smtpd_sasl_auth_enable = yes
Unfortunately with SASL turned on the Node.js app cannot connect to the server. It produces this error when Node attempts to send.
auth(3552): pam_unix(dovecot:auth): check pass; user unknown auth(3552): pam_unix(dovecot:auth): authentication failure; logname= uid=0 euid=0 tty=dovecot email@example.com rhost=18.104.22.168 postfix/smtpd(3540): warning: unknown(22.214.171.124): SASL PLAIN authentication failed:
On the flip side when those 4 lines are commented out in
main.cf Node.js can connect up and send mail without a problem.
Unfortunately with SASL turned off I lose the ability to send and receieve email in Thunderbird. I get this error in an alert box in Thunderbird.
An error occurred while sending mail. The mail server responded: 454 4.7.1 <firstname.lastname@example.org>: Relay access denied.