[CentOS] Not receiving mail

Mon Oct 18 20:02:43 UTC 2010
Dotan Cohen <dotancohen at gmail.com>

On Mon, Oct 18, 2010 at 01:46, Ryan Wagoner <rswagoner at gmail.com> wrote:
> You will want to check your DNS and try to telnet to the server. If
> your server is behind NAT or you run split-dns it would be advisable
> to try it from another connection.
>
> dig mx yourdomain.com
> telnet smtp.yourdomain.com 25
>
> Of course if your mx record points to something other than
> smtp.yourdomain.com you will want to use that instead.
>

Thanks, Ryan. The MX record looks fine, but telnet won't connect:

✈dcl:~$ dig mx sharingcenter.eu

; <<>> DiG 9.7.1-P2 <<>> mx sharingcenter.eu
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22263
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1

;; QUESTION SECTION:
;sharingcenter.eu.              IN      MX

;; ANSWER SECTION:
sharingcenter.eu.       86400   IN      MX      10 mail.sharingcenter.eu.

;; AUTHORITY SECTION:
sharingcenter.eu.       86400   IN      NS      ns2.sharingcenter.eu.
sharingcenter.eu.       86400   IN      NS      ns1.sharingcenter.eu.

;; ADDITIONAL SECTION:
mail.sharingcenter.eu.  86400   IN      A       178.63.65.136

;; Query time: 88 msec
;; SERVER: 212.150.49.10#53(212.150.49.10)
;; WHEN: Mon Oct 18 21:52:25 2010
;; MSG SIZE  rcvd: 107

✈dcl:~$ telnet sharingcenter.eu 25
Trying 178.63.65.188...
^C
✈dcl:~$ telnet mail.sharingcenter.eu 25
Trying 178.63.65.136...
telnet: Unable to connect to remote host: No route to host
✈dcl:~$



On the server, it looks like everything is running as it should:
[root at mercury ~]# service postfix status
master (pid 31800) is running...
[root at mercury ~]# service dovecot status
dovecot (pid  29751) is running...
[root at mercury ~]# netstat -anp --tcp --udp | grep LISTEN | grep 25
tcp        0      0 127.0.0.1:25                0.0.0.0:*
     LISTEN      31800/master
[root at mercury ~]#


What could I be missing? The logs are clean.

-- 
Dotan Cohen

http://gibberish.co.il
http://what-is-what.com