I have a few VPSs (all of them uses the same OS) and they all have the same Virtualmin+Webmin versions installed. The Webmin and Virtualmin settings too are the same on all of them.
For some weird reason, one of the servers can’t connect to external SMTP servers even though I’ve checked and confirmed that the Postfix and Dovecot settings are set up in the same way as on the other servers.
I have a dummy WordPress site on the server that I have configured to send mail via SMTP (manually setting SMTP up by configuring wp_mail as well as using an SMTP plugin) but test mails sent from the site are not delivered.
However, when I do the same thing (using wp_mail or SMTP plugin) on live WordPress sites hosted on the other servers, the test mails are delivered without a problem.
Running “re-checking configuration” returns no errors and I tried checking the mail logs in /var/log/mail.log but there isn’t anything useful there too other than a few lines about brute-force login attempts (SASL LOGIN authentication failed).
What could be causing this particular server to be unable to connect to external SMTP servers?
Yet, it should be logged. Perhaps you’re not looking at the right logs?
Please double check that saslauthd service is running and/or restart it manually and that mail for domain feature is enabled on Edit Virtual Server page.
@Gomez_Adams That is the same SMTP plugin that I used on the other servers as well as the one I tried on this server lol The server as well as the WordPress sites on it can’t connect to external SMTP servers (self-hosted mailservers or providers like Google, SendGrid, Sendinblue etc) even though the Postfix configuration is exactly the same as on the other Virtualmin+Webmin servers that I have with SMTP working.
System notifications from Webmin for example, are not getting delivered when I try to send them via SMTP either.
And my mail.log doesn’t show anything related to this SMTP issue other than lines about failed login attempts by bots every now and then.
@Gomez_Adams When I try to send a test email using the Email Test available in the WP MAIL SMTP plugin, the page just keeps on loading for a while and then the browser shows a Timeout error.
That may be the problem. I think that plugin is limited if it’s not the pro version. If they see multiple instances running that plugin through the same IP I think they limit it unless you upgrade to the pro version.
I had the same issue while I was trying to setup thunderbird, my configuration: OS: Debian Linux 10 Webmin version 1.974 Usermin version 1.823 Virtualmin version 6.16
IMAP and POP3 worked fine but when I tried to send email I had an authentication error from thunderbid and the logs from the servers associated with the authentication error were:
warning: SASL authentication failure: cannot connect to saslauthd server: No such file or directory
warning: SASL authentication failure: Password verification failed
I used the command :~#systemctl
and I found this line
saslauthd.service loaded active exited LSB: saslauthd startup script
I supposed that the saslauthd service was not running and I ran the command :~#systemctl restart sasauthd
and It fixed my problem, now I can send emails from thunderbid.
If I run the command :~#systemctl
now the line associated with the state of the saslauthd service is:
saslauthd.service loaded active running LSB: saslauthd startup script