前两天公司的邮箱突然无法向一个使用Gmail企业邮箱的地址发送邮件了,查了半天是因为公司邮件服务器无法连接到对方域名设置的MX记录了(Gmail的MTA),后来在域名注册商那里将不能连接的MX记录删除重新设置上可用的地址就可以了,在此记录一下。 MX 服务器地址有以下:
ASPMX.L.GOOGLE.COM ALT1.ASPMX.L.GOOGLE.COM ALT2.ASPMX.L.GOOGLE.COM ASPMX2.GOOGLEMAIL.COM ASPMX3.GOOGLEMAIL.COM ASPMX4.GOOGLEMAIL.COM ASPMX5.GOOGLEMAIL.COM DNS解析设置:
设置完成后等待一会儿重启一下服务器网络,使用nslookup查看一下:
# /etc/init.d/network restart # nslookup > set q=mx > iq-hub.com.sg ;; Got SERVFAIL reply from 127.0.0.1, trying next server Server: 10.202.72.118 Address: 10.202.72.118#53
Non-authoritative answer: iq-hub.com.sg mail exchanger = 1 aspmx3.googlemail.com. iq-hub.com.sg mail exchanger = 1 alt2.aspmx.l.google.com. iq-hub.com.sg mail exchanger = 1 aspmx4.googlemail.com.
Authoritative answers can be found from: iq-hub.com.sg nameserver = ns1.alidns.com. iq-hub.com.sg nameserver = ns2.alidns.com. alt2.aspmx.l.google.com internet address = 74.125.25.27 alt2.aspmx.l.google.com has AAAA address 2607:f8b0:400e:c03::1a aspmx3.googlemail.com internet address = 74.125.25.27 aspmx3.googlemail.com has AAAA address 2607:f8b0:400e:c03::1b ASPMX4.googlemail.com internet address = 64.233.168.26 ns1.alidns.com internet address = 42.120.221.11 ns1.alidns.com internet address = 140.205.81.11 ns1.alidns.com internet address = 140.205.228.11 ns2.alidns.com internet address = 42.120.221.21 ns2.alidns.com internet address = 140.205.81.21 ns2.alidns.com internet address = 140.205.228.21 > 好了,生效了,在后台重新对邮件队列里未发出的邮件进行排队。