后缀:“连接超时”在所有出站电子邮件

我一直在试图用GNU Mailman设置邮件列表,但是这是一个完整的灾难,有很多路障。 Postfix能够收到电子邮件,但根本不能将其发回,我偷看了日志,这是我发现的:

Mar 30 16:35:30 apott-server postfix/smtp[22572]: connect to gmail-smtp in.l.google.com[74.125.142.26]:25: Connection timed out Mar 30 16:36:01 apott-server postfix/smtp[22572]: connect to alt1.gmail-smtp-in.l.google.com[173.194.76.27]:25: Connection timed out Mar 30 16:36:31 apott-server postfix/smtp[22572]: connect to alt2.gmail-smtp-in.l.google.com[74.125.131.26]:25: Connection timed out Mar 30 16:37:01 apott-server postfix/smtp[22572]: connect to alt3.gmail-smtp-in.l.google.com[173.194.67.27]:25: Connection timed out Mar 30 16:37:31 apott-server postfix/smtp[22572]: connect to alt4.gmail-smtp-in.l.google.com[173.194.65.26]:25: Connection timed out Mar 30 16:37:31 apott-server postfix/smtp[22572]: A0616100CCB: to=<[email protected]>, relay=none, delay=150, delays=0.06/0.01/150/0, dsn=4.4.1, status=deferred (connect to alt4.gmail-smtp-in.l.google.com[173.194.65.26]:25: Connection timed out) 

所以显然是阻止传出电子邮件,有没有人有任何build议如何解决这个问题?

(服务器是一个Ubuntu Linux框)

感谢您的帮助。

连接超时意味着你的TCP SYN数据包没有收到SYN-ACK。 这意味着必须阻止SYN或SYN-ACK。

您可以使用traceroute来找出您的SYN数据包有多远

 traceroute -n -T -p 25 gmail-smtp-in.l.google.com 

请注意,Ubuntu存在不同的traceroute命令。 上述命令与traceroute.db一起使用,但不能与traceroute-nanog或inetutils-traceroute一起使用。

运行第二个跟踪路由使用端口80而不是端口25进行比较可能是有用的。

这可能是无关的,但我会在这里发布,因为我很难find我的问题的答案。 我可以通过编辑我的/etc/resolv.conf来使用Google的域名服务器而不是它设置的IP地址10.0.xx,

 sudo vi /etc/resolv.conf 

更改名称服务器IP:

 nameserver 8.8.8.8 

那么你需要重新启动postfix:

 sudo /etc/init.d/postfix restart 

设置一个中继主机到你的isp smtp服务器,在:/etc/postfix/main.conf

然后重新加载:sudo服务后缀重新加载