I have a postfix / dovecot mail server setup using TLS.
The IMAP / POP side of the server works perfectly, but I cannot connect to it for SMTP.
Even telnetting it from a remote computer I get Connection refused.
Calling telnet localhost 25
from the server itself works fine though, and if I look at the open ports one of them is 0.0.0.0:25, which looks like it is listening on port 25 for incoming connections.
Any ideas?
Best Answer
Multiple possibilities
All the above are common causes.
If you are trying to use that server as your out going smtp, use port 587 or 465.
You may have to modify postfix configuration file your email server to enable the above ports.
In /etc/postfix/master.cf, look for following lines
Un-comment them (remove the # in the beginning of each line) and restart postfix.
The submission section enable port 587.
the smtps section enable port 465.