这是什么意思连接到aspmx.l.google.com:25:networking无法访问?

我有服务器与RHEL 6和后缀(postfix-2.6.6-2.2.el6),当我尝试发送电子邮件到谷歌我得到这在/ var / logmaillog:

postfix/smtp[13414]: 6F4DC10406E7: to=<[email protected]>, relay=none, delay=0.16, delays=0.02/0/0.14/0, dsn=4.4.1, status=deferred (connect to aspmx.l.google.com[2a00:1450:4013:c01::1b]:25: Network is unreachable) 

这个错误只发生在这个域(englishonlineuniversity.com)。

这是什么意思连接到aspmx.l.google.com:25:networking无法访问?

这意味着您的MTA正尝试通过IPv6连接到Google SMTP(2a00:1450:4013:c01 :: 1b)。 这不起作用,因为您的networking可能不支持IPv6。

为了摆脱错误信息,你可以通过编辑你的/etc/postfix/main.cfconfigurationPostfix不使用IPv6:

 inet_protocols = ipv4 

之后,你将不得不重新启动postfix:

 /etc/init.d/postfix restart 

有些ISP不允许本地主机作为域名(QFDN),并会拒绝来自服务器的传入电子邮件。 在/etc/postfix/main.cf改变如下:

 myhostname = localhost 

到您拥有的完全合格的域名,即:

 myhostname = geoip-db.com mydestination = geoip-db.com, localhost.localdomain, localhost