I am attempting to set up an email server on a VPS running Debian Squeeze. I've setup Postfix according to the instructions at here.
Everything seems to work fine if I connect to the server from
mark@revolver:~$ telnet localhost 25 Trying 127.0.0.1... Connected to localhost.localdomain. Escape character is '^]'. 220 xxxxx.xxxxxx.com ESMTP Postfix (Debian/GNU) ehlo localhost 250-xxxxx.xxxxxx.com 250-PIPELINING 250-SIZE 30720000 250-VRFY 250-ETRN 250-STARTTLS 250-AUTH PLAIN LOGIN 250-AUTH=PLAIN LOGIN 250-ENHANCEDSTATUSCODES 250-8BITMIME 250 DSN
Also, a relevant entry appears in
May 9 22:03:28 revolver postfix/smtpd: connect from localhost.localdomain[127.0.0.1]
However, attempting to telnet remotely from my laptop is not working correctly. I can connect to the host on port 25, but the server won't respond to any commands and will close the connection after about 20 seconds. For example:
$ telnet xxxx.xxxxxx.com 25 Trying xxx.xxx.xxx.xxx... Connected to xxxx.xxxxxxx.com. Escape character is '^]'. 421 Cannot connect to SMTP server xxx.xxx.xxx.xxx (xxx.xxx.xxx.xxx:25), connect timeout Connection closed by foreign host.
Interestingly, there is nothing in the log files.
Any ideas what might be causing this? I'm especially confused by the 421 error. Why is the server trying to connect itself?