【发布时间】:2021-03-23 03:34:27
【问题描述】:
我听说 GCP 上的 25 端口被阻止,但我将 SMTP 服务器的入站和出站端口更改为 2525,理论上应该没问题。我注册的时候不知道。
当我尝试使用 MDaemon Mail Server 发送电子邮件时,我收到了 Socket Error 10060。
应该有什么问题?
我在 GCP 防火墙上打开了所有需要的端口,并且 Windows 防火墙被禁用。
尝试了 Windows Server 2016 和 2019
Fri 2020-12-11 17:23:03.722: ----------
Fri 2020-12-11 17:27:42.719: REMOTE message: pd3501000000001.msg
Fri 2020-12-11 17:27:42.719: * Session 00000014; child 0001
Fri 2020-12-11 17:27:42.719: * From: [censored]
Fri 2020-12-11 17:27:42.719: * To: ins-pn02qrxe@isnotspam.com
Fri 2020-12-11 17:27:42.719: * Subject: testing
Fri 2020-12-11 17:27:42.719: * Message-ID: <WC20201211165159.320001@[censored]>
Fri 2020-12-11 17:27:42.719: * Size: 2133; <c:\mdaemon\queues\remote\pd3501000000001.msg>
Fri 2020-12-11 17:27:42.740: Resolving MX record for isnotspam.com (DNS Server: 10.172.0.1)...
Fri 2020-12-11 17:27:42.753: * P=010 S=000 D=isnotspam.com TTL=(59) MX=[isnotspam.com]
Fri 2020-12-11 17:27:42.753: Attempting SMTP connection to isnotspam.com
Fri 2020-12-11 17:27:42.753: Resolving A record for isnotspam.com (DNS Server: 10.172.0.1)...
Fri 2020-12-11 17:27:42.757: * D=isnotspam.com TTL=(59) A=[74.208.156.227]
Fri 2020-12-11 17:27:42.757: Attempting SMTP connection to 74.208.156.227:2525
Fri 2020-12-11 17:27:42.757: Waiting for socket connection...
Fri 2020-12-11 17:28:03.761: * Socket error 10060 - The connection timed out.
Fri 2020-12-11 17:28:03.761: * This message is 35 minutes old; it has 25 minutes left in this queue
Fri 2020-12-11 17:28:03.762: SMTP session terminated (Bytes in/out: 0/0)
提前感谢您的帮助!
【问题讨论】:
-
你关注了这个doc
-
是的,这就是为什么我使用端口 2525 而不是 25 作为 SMTP 输出的原因。所以我认为这样应该不会造成任何问题?
-
“如果您想在自定义端口上使用自己的电子邮件服务器,请使用特定于您的电子邮件服务的文档来配置自定义电子邮件端口。”我只是这样做并设置了一个自定义端口 2525
-
与您正在阅读的内容相反,电子邮件仍通过 25 端口发送电子邮件服务器 -> 电子邮件服务器。端口 2525、587 等供您自己的内部服务器监听以供您自己的客户端连接在。一旦您希望您的电子邮件离开您的服务器到 Internet,它就会在端口 25 上发出。端口 25 通常被阻止以防止垃圾邮件服务器。
-
@JohnHanley 嗯...所以没有办法改变它?
标签: email networking google-cloud-platform smtp mail-server