I just set up Postfix + Dovecot on Ubuntu and it doesn't seem to behave 100% as expected. If I run telnet localhost 25
, I get:
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 playground ESMTP Postfix (Ubuntu)
This is good. If I try connecting to port 25 via telnet using Putty, however, I don't receive any greeting or response. It does connect, but just hangs there.
I can send from Gmail to my server and receive the mail, and I can email Gmail back, so it's partially configured. But I'm having trouble with another email service delivering to my domain, so I'm trying to debug if this is related.
One thing to note: I did netstat -antup|grep 25
and I get:
tcp 0 0 0.0.0.0:993 0.0.0.0:* LISTEN 25774/dovecot
tcp 0 0 0.0.0.0:995 0.0.0.0:* LISTEN 25774/dovecot
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 25774/dovecot
tcp6 0 0 :::993 :::* LISTEN 25774/dovecot
tcp6 0 0 :::995 :::* LISTEN 25774/dovecot
tcp6 0 0 :::143 :::* LISTEN 25774/dovecot
And if I do netstat -antup|grep master
(postfix):
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 14939/master
tcp 0 0 0.0.0.0:587 0.0.0.0:* LISTEN 14939/master
tcp 0 0 0.0.0.0:465 0.0.0.0:* LISTEN 14939/master
tcp6 0 0 :::25 :::* LISTEN 14939/master
tcp6 0 0 :::587 :::* LISTEN 14939/master
tcp6 0 0 :::465 :::* LISTEN 14939/master
Shouldn't these be tied to an IP address instead of localhost? (I'm surprised my mail works at all)
Update: My firewall info:
5038/udp ALLOW 127.0.0.1
5038 ALLOW 127.0.0.1
443 ALLOW Anywhere
8080 ALLOW Anywhere
7500 ALLOW Anywhere
7474 ALLOW Anywhere
25 ALLOW Anywhere
22 ALLOW Anywhere
25/tcp ALLOW Anywhere
21/tcp ALLOW Anywhere
465 ALLOW Anywhere
587 ALLOW Anywhere
110 ALLOW Anywhere
995 ALLOW Anywhere
143 ALLOW Anywhere
993 ALLOW Anywhere
80/tcp ALLOW Anywhere
443 (v6) ALLOW Anywhere (v6)
8080 (v6) ALLOW Anywhere (v6)
7500 (v6) ALLOW Anywhere (v6)
7474 (v6) ALLOW Anywhere (v6)
22 (v6) ALLOW Anywhere (v6)
25/tcp (v6) ALLOW Anywhere (v6)
21/tcp (v6) ALLOW Anywhere (v6)
465 (v6) ALLOW Anywhere (v6)
587 (v6) ALLOW Anywhere (v6)
110 (v6) ALLOW Anywhere (v6)
995 (v6) ALLOW Anywhere (v6)
143 (v6) ALLOW Anywhere (v6)
993 (v6) ALLOW Anywhere (v6)
80/tcp (v6) ALLOW Anywhere (v6)
25 (v6) ALLOW Anywhere (v6)