SMTP not working when following guide on Linode Library
I just followed the awesome guide at
However I'm facing a problem with SMTP. Outlook reports the following error when it tries to send a test email:
> Send test e-mail message: Outlook cannot connect to your outgoing (SMTP) e-mail server. If you continue to receive this message, contact your server administrator or Internet service provider (ISP).
My first thought was to look in /var/log/mail.log, however there's nothing in there relating to SMTP. All it has is my connections via IMAP.
Then, I thought it was a iptables issue. I verified that the port was unblocked and it is via the following rule:
-A INPUT -p tcp --dport 25 -j ACCEPT
Here's therelevant iptables -L too:
ACCEPT tcp -- anywhere anywhere tcp dpt:smtp
What's interesting though, is if I try to telnet into my server on port 25 from my Windows machine I get this error message:
Connecting To <my linode="" ip="">...Could not open connection to the host, on port 25: Connect failed</my>
So it's kind of acting as if the port is blocked even though iptables is reporting it's open.
Does anyone know if there's extra steps I need to take to get SMTP working? I followed that guide line by line and assumed it would work out of the box. Does anyone have any recommendations?
Thank you!
Edit: I also just tried to use port 465 instead of 25 for SSMTP but the exact same problem remains.
8 Replies
Any idea how I can proceed? I'm guessing I need to make Postfix associate port 587 with SMTP?
Finally have IMAP and SMTP working completely running from my Linode, huge thanks to whoever wrote that guide on the library!
submission inet n - - - - smtpd
and
smtps inet n - - - - smtpd
In theory I should now be able to use SMTP on port 25, 587, and 465 right? However when I configure my account using thunderbird to use port 587, or 465 for SMTP, I get a server timed out error after about 1 min. I have also checked my firewall rules and they are fine. Does anybody have any idea what is going on?