Centos postfix smtp问题

我通过在webmin中点击用户来撰写邮箱,并尝试发送给[email protected],但是没有收到我的邮件,如何排查呢?

我的testing环境:-linux centos 6 192.168.0.13(在我的vmware服务器的Windows 7 192.168.0.10)-postfix安装包通过webmin&virtualmin -router dmz 192.168.0.13 – 一切工作正常,包括(SSH / FTP / HTTP)

有任何想法吗?

错误消息在/ var / log / maillog中

Sep 16 22:58:50 localhost postfix/qmgr[7736]: D1048943: from=<[email protected]>, size=582, nrcpt=1 (queue active) Sep 16 22:59:11 localhost postfix/smtp[8615]: connect to gmail-smtp-in.l.google.com[74.125.127.26]:25: Connection timed out Sep 16 22:59:32 localhost postfix/smtp[8615]: connect to alt1.gmail-smtp-in.l.google.com[74.125.159.27]:25: Connection timed out Sep 16 22:59:53 localhost postfix/smtp[8615]: connect to alt2.gmail-smtp-in.l.google.com[74.125.93.27]:25: Connection timed out Sep 16 23:00:14 localhost postfix/smtp[8615]: connect to alt3.gmail-smtp-in.l.google.com[74.125.113.27]:25: Connection timed out Sep 16 23:00:35 localhost postfix/smtp[8615]: connect to alt4.gmail-smtp-in.l.google.com[209.85.143.27]:25: Connection timed out Sep 16 23:00:35 localhost postfix/smtp[8615]: D1048943: to=<[email protected]>, relay=none, delay=3472, delays=3367/0.03/105/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[209.85.143.27]:25: Connection timed out) 

MAILQ:

AF9CA94A 585 Fri Sep 16 22:27:48 [email protected](连接到alt4.gmail-smtp-in.l.google.com [209.85.143.26]:25:连接超时)[email protected]

– 7个请求中的5千字节。


我testing了我的端口25 telnet aspmx.l.google.com(无法连接)telnet smtp.hutchcity.com(我的isp smtp地址)(可以连接)

所以我改变后缀configuration: relayhost = smtp.hutchcity.com

但在var / log / maillog中有一个错误信息抱歉,该域名不在我允许的rcpthosts列表中


 Sep 17 03:13:54 localhost postfix/pickup[14151]: CD5F4907: uid=0 from=<[email protected]> Sep 17 03:13:54 localhost postfix/cleanup[16350]: CD5F4907: message-id=<[email protected]> Sep 17 03:13:54 localhost postfix/qmgr[14152]: CD5F4907: from=<[email protected]>, size=579, nrcpt=1 (queue active) Sep 17 03:13:54 localhost postfix/smtp[16375]: CD5F4907: to=<[email protected]>, relay=smtp.hutchcity.com[202.45.84.105]:25, delay=0.07, delays=0.03/0/0.02/0.02, dsn=5.0.0, status=bounced (host smtp.hutchcity.com[202.45.84.105] said: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1) (in reply to RCPT TO command)) Sep 17 03:13:54 localhost postfix/cleanup[16350]: DEE5390E: message-id=<[email protected]> Sep 17 03:13:54 localhost postfix/qmgr[14152]: DEE5390E: from=<>, size=2541, nrcpt=1 (queue active) Sep 17 03:13:54 localhost postfix/bounce[16376]: CD5F4907: sender non-delivery notification: DEE5390E Sep 17 03:13:54 localhost postfix/qmgr[14152]: CD5F4907: removed Sep 17 03:13:54 localhost postfix/local[16352]: DEE5390E: to=<[email protected]>, relay=local, delay=0.07, delays=0.03/0/0/0.04, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME) Sep 17 03:13:54 localhost postfix/qmgr[14152]: DEE5390E: removed 

首先阅读/var/log/mail.log的邮件日志。 如果应该告诉你邮件是否离开你的服务器,如果离开,是否被GMail接受。

另外检查一下mailq返回一些东西。

你能成功地发送邮件到任何地方比GMail?

编辑后自己编辑 :东西阻止从您的服务器到SMTP端口(25)的传出stream量。 这可能是由于您的服务器上的iptables设置,其他地方的防火墙设置,或者您需要使用您的ISP邮件主机作为中继主机的连接。

许多ISP阻止来自客户端的连接到:25,因为这是垃圾邮件发送者和僵尸networking倾向于发送垃圾邮件的方式。

我的第二个编辑:这是smtp.hutchcity.com ,它不允许你通过它发送邮件。 联系您的ISP。

我的第三个编辑现在,我仔细看,你的服务器似乎发送helo localhost.localdomain。 这可以让你的ISP邮件服务器不高兴。 更正这个问题,再试一次,然后联系你的ISP,如果修复你的主机名没有帮助。