a message “smtp error connection to server failed” appears when trying to send a message this happened after updating postfix
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Enter your email to get $200 in credit for your first 60 days with DigitalOcean.
New accounts only. By submitting your email you agree to our Privacy Policy.
Hey @0906610ad3fd40e0b542554a891be3,
What do you see in the logs? The first place you should look at when facing this problem is the Postfix log, which usually can be found in
/var/log/maillog
,/var/log/mail.log
, or/var/log/syslog
, depending on your system. Tail the log usingtail -f /path/to/log
and try sending an email again. See if there’s any useful information in the log output.Additionally, what SMTP port are you using, is it 25? It’s possible the port is blocked and I would advice using either 587 or 465 depending on your preference.
Anothter thing to check would be your postfix configuration after the update. Look into the Postfix main configuration file
/etc/postfix/main.cf
. Ensure thesmtpd
parameters are correctly configured.inet_interfaces = all
should allow Postfix to listen on all network interfaces.Use the
mailq
command orpostqueue -p
to view the mail queue. If there are many undelivered mails, it could indicate a problem.