本地smtp邮件服务器无法发送邮件(连接超时)

local smtp mail server could not send mail(Connection timed out)

错误:

Feb 14 14:09:04 es1 postfix/smtp[16443]: connect to mx3.hotmail.com[65.54.188.94]:25: Connection timed out
Feb 14 14:09:34 es1 postfix/smtp[16443]: connect to mx1.hotmail.com[104.44.194.231]:25: Connection timed out
Feb 14 14:10:04 es1 postfix/smtp[16443]: connect to mx1.hotmail.com[207.46.8.167]:25: Connection timed out
Feb 14 14:10:34 es1 postfix/smtp[16443]: connect to mx2.hotmail.com[65.55.37.104]:25: Connection timed out
Feb 14 14:11:04 es1 postfix/smtp[16443]: connect to mx1.hotmail.com[65.55.92.136]:25: Connection timed out
Feb 14 14:11:04 es1 postfix/smtp[16443]: 228D519C06D: to=<xxxx@hotmail.com>, relay=none, delay=395818, delays=395668/0.01/150/0, dsn=4.4.1, status=deferred (connect to mx1.hotmail.com[65.55.92.136]:25: Connection timed out)

我在CentOS 6上用Postfix/Dovecot托管邮件服务器,我可以从外面接收邮件,但不能不发送邮件到外面。

我做过的事情:

添加spf记录到dns,也从http://www.kitterman.com/spf/validate.html验证成功?

v=spf1 ip4:x.x.x.x -all 

注:

由于 ISP 阻止问题,我已通过添加 etc/postfix/master.cf

将默认端口 25 更改为 26
26 inet n - n - - smtpd

您的 ISP 可能阻止了出站端口 25。这很常见。您的 SPF 记录和入站 SMTP 端口没有区别。我建议您联系您的 ISP。