Postfix 连接超时

Postfix 连接超时

我使用下面的教程在 Digital Ocean 服务器上设置了 postfix 和 dovecot。但是当 postfix/smtp 尝试将电子邮件发送到远程主机(如 gmail 或 yahoo)时,我收到“连接超时”的提示。

https://www.digitalocean.com/community/articles/how-to-set-up-a-postfix-e-mail-server-with-dovecot


收到新消息 /var/log/mail.log


2 月 2 日 22:33:38 localhost dovecot:auth-worker:调试:从目录加载模块:/usr/lib/dovecot/modules/auth

2 月 2 日 22:33:38 localhost dovecot:auth-worker:调试:pam(app,189.63.49.XXX):查找服务 = dovecot

2 月 2 日 22:33:38 localhost dovecot:auth-worker:调试:pam(app,189.63.49.XXX):#1/1 style=1 msg=密码:

2 月 2 日 22:33:38 localhost dovecot:auth:调试:客户端输出:OK#0111#011user=app

2 月 2 日 22:33:40 localhost postfix/submission/smtpd[1045]: E9AA724264: 客户端 = 未知 [189.63.49.XXX], sasl_method=PLAIN, sasl_username=app

2 月 2 日 22:33:43 localhost postfix/cleanup[1052]: E9AA724264: message-id=

2 月 2 日 22:33:43 localhost postfix/qmgr[32661]: E9AA724264: from=, size=485, nrcpt=1 (队列活动)

2 月 2 日 22:33:45 localhost postfix/submission/smtpd[1045]: 断开与未知 [189.63.49.XXX] 的连接

2 月 2 日 22:34:14 localhost postfix/smtp[1053]: 连接到 mta5.am0.yahoodns.net[98.136.216.25]:25: 连接超时


2 月 2 日 22:24:21 localhost postfix/smtp[1013]: 连接到 mta6.am0.yahoodns.net[98.136.217.202]:25: 连接超时

2 月 2 日 22:24:21 localhost postfix/smtp[1014]: 连接到 gmail-smtp-in.l.google.com[173.194.76.27]:25: 连接超时

2 月 2 日 22:24:21 localhost postfix/smtp[1015]: 连接到 gmail-smtp-in.l.google.com[173.194.76.27]:25: 连接超时

2 月 2 日 22:24:21 localhost postfix/smtp[1012]: 连接到 aspmx.l.google.com[173.194.68.27]:25: 连接超时


这是 /etc/postfix/main.cf http://pastebin.com/nHQhh8Bp

/etc/postfix/master.cf http://pastebin.com/nnJBP9mh

#> netstat -nlptu 的结果 http://pastebin.com/PKJX6xC1

答案1

发送 SMTP 开启默认情况下,所有 Digital Ocean 用户的 25 端口均被阻止。如果您希望解除封锁,则需要联系他们。

答案2

检查你的名称服务器/etc/resolv.conf,尝试 Google 的 8.8.8.8:

sudo vi /etc/resolv.conf

更改名称服务器IP:

nameserver 8.8.8.8

然后重新启动 postfix:

sudo /etc/init.d/postfix restart

相关内容