Postfix和Dovecot我无法发送外部电子邮件

我正在尝试使用MySQL数据库安装带有dovecot和postfix的电子邮件服务器。 我可以发送电子邮件给我的域@ eddelus.com的其他用户,我也可以从外部域收到电子邮件,但我不能发送电子邮件到外部域。

我可以使用telnet连接到端口110和587

看看日志(cat /var/log/mail.log)我find这个:

Jul 23 15:47:55 eddelus postfix/submission/smtpd[4171]: connect from unknown[90.164.39.14] Jul 23 15:47:56 eddelus postfix/submission/smtpd[4171]: 5A1831C1B22: client=unknown[90.164.39.14], sasl_method=PLAIN, sasl_username=[username]@eddelus.com Jul 23 15:47:56 eddelus postfix/cleanup[4210]: 5A1831C1B22: message-id=<[email protected]> Jul 23 15:47:56 eddelus postfix/qmgr[3798]: 5A1831C1B22: from=<[username]@eddelus.com>, size=640, nrcpt=1 (queue active) Jul 23 15:47:56 eddelus postfix/error[4211]: 5A1831C1B22: to=<[reciever]@gmail.com>, relay=none, delay=0.27, delays=0.25/0.02/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[74.125.68.26]:25: Connection timed out) Jul 23 15:47:56 eddelus postfix/submission/smtpd[4171]: disconnect from unknown[90.164.39.14] ehlo=2 starttls=1 auth=1 mail=1 rcpt=1 data=1 quit=1 commands=8 

编辑:

启用的端口列表

Scaleway允许smtp

日志包含:

 connect to alt2.gmail-smtp-in.l.google.com[74.125.68.26]:25: Connection timed out 

连接被阻塞的地方,可能通过防火墙。 或者由您的提供商的防火墙。 如果稍后联系您的提供商以打开端口。

您可以使用netcat -v 74.125.68.26 25testing连接。 你应该看到“连接成功” 。 否则就是阻塞了。 没有更多的信息,我不能帮助更多:/ – sebix 18小时前

 [74.125.68.26]:25: Connection timed out 

您无法在端口25上连接收件人MTA(Gmail)。 这通常意味着SMTP端口25在某个级别上被阻塞。

  • 你有什么样的互联网连接? 如果连接不适用于电子邮件服务器,ISP有时会阻止SMTP来阻止垃圾邮件。 你可以联系你的ISP,询问他们是否可以打开这个端口。 您也可能需要通过ISP的SMTP服务器发送所有外发邮件。

  • 检查你的防火墙。

提交作品,因为它使用单独的端口。