为什么 Postfix 尝试连接到其他机器的 SMTP 端口 25?

Try*_*ain 11 smtp postfix

我收到这些错误:

Jul  5 11:09:25 relay postfix/smtp[3084]: connect to ab.xyz.com[10.41.0.101]:25: Connection refused
Jul  5 11:09:25 relay postfix/smtp[3087]: connect to ab.xyz.com[10.41.0.247]:25: Connection refused
Jul  5 11:09:25 relay postfix/smtp[3088]: connect to ab.xyz.com[10.41.0.101]:25: Connection refused
Jul  5 11:09:25 relay postfix/smtp[3084]: connect to ab.xyz.com[10.41.0.247]:25: Connection refused
Jul  5 11:09:25 relay postfix/smtp[3087]: connect to ab.xyz.com[10.41.0.110]:25: Connection refused
Jul  5 11:09:25 relay postfix/smtp[3088]: connect to ab.xyz.com[10.41.0.110]:25: Connection refused
Jul  5 11:09:25 relay postfix/smtp[3084]: connect to ab.xyz.com[10.41.0.102]:25: Connection refused
Jul  5 11:09:30 relay postfix/smtp[3085]: connect to ab.xyz.com[10.41.0.102]:25: Connection refused
Jul  5 11:09:30 relay postfix/smtp[3086]: connect to ab.xyz.com[10.41.0.247]:25: Connection refused
Jul  5 11:09:30 relay postfix/smtp[3086]: connect to ab.xyz.com[10.41.0.102]:25: Connection refused
Jul  5 11:09:55 relay postfix/smtp[3087]: connect to ab.xyz.com[10.40.40.130]:25: Connection timed out
Jul  5 11:09:55 relay postfix/smtp[3084]: connect to ab.xyz.com[10.40.40.130]:25: Connection timed out
Jul  5 11:09:55 relay postfix/smtp[3088]: connect to ab.xyz.com[10.40.40.130]:25: Connection timed out
Jul  5 11:09:55 relay postfix/smtp[3087]: connect to ab.xyz.com[10.41.0.135]:25: Connection refused
Jul  5 11:09:55 relay postfix/smtp[3084]: connect to ab.xyz.com[10.41.0.110]:25: Connection refused
Jul  5 11:09:55 relay postfix/smtp[3088]: connect to ab.xyz.com[10.41.0.247]:25: Connection refused
Run Code Online (Sandbox Code Playgroud)

这是一个 DNS 问题吗,我已经从我们的本地 DNS 更改为 Google 的,因此值得怀疑。Postfix 偶尔会尝试从各种地址连接到 ab.xyz.com,这些地址可能会或可能不会打开端口 25 并充当邮件服务器开始。

为什么 Postfix 尝试连接到日志中看到的其他机器?

  • 邮件发送正常,除此之外,看起来一切都很好。

偶尔我也会看到:

中继后缀/错误[3090]:3F1AB42132:to=,relay=none,delay=32754,delays=32724/30/0/0,dsn=4.4.1,status=deferred(发送暂时暂停:连接到ab.xyz .com[10.41.0.102]:25:连接被拒绝)

我的 Postfix 设置几乎没有限制:

mynetworks = 127.0.0.0/8, 10.0.0.0/8
Run Code Online (Sandbox Code Playgroud)

只要。就像我说的那样,似乎所有邮件都在通过,但我讨厌看到错误,而且我很困惑为什么它会尝试连接到日志中看到的其他机器。

一些输出 cat /var/log/mail.log|grep 3F1AB42132

7 月 5 日 02:04:01 中继 postfix/smtpd[1653]:3F1AB42132:client=unknown[10.41.0.109]

7 月 5 日 02:04:01 中继后缀/清理 [1655]:3F1AB42132:消息 ID=

7 月 5 日 02:04:01 中继 postfix/qmgr[1588]: 3F1AB42132: from=, size=3404, nrcpt=1 (queue active)

7 月 5 日 02:04:31 中继后缀/smtp[1634]:3F1AB42132:to=,relay=none,delay=30,delays=0.02/0/30/0,dsn=4.4.1,status=deferred(连接到ab.xyz.com[10.41.0.110]:25:连接被拒绝)

7 月 5 日 02:13:58 中继 postfix/qmgr[1588]: 3F1AB42132: from=, size=3404, nrcpt=1 (queue active)

7 月 5 日 02:14:28 中继后缀/smtp[1681]:3F1AB42132:to=,relay=none,delay=628,delays=598/0.01/30/0,dsn=4.4.1,status=deferred(连接到ab.xyz.com[10.41.0.247]:25:连接被拒绝)

7 月 5 日 02:28:58 中继 postfix/qmgr[1588]: 3F1AB42132: from=, size=3404, nrcpt=1 (queue active)

7 月 5 日 02:29:28 中继后缀/smtp[1684]:3F1AB42132:to=,relay=none,delay=1527,delays=1497/0/30/0,dsn=4.4.1,status=deferred(连接到ab.xyz.com[10.41.0.135]:25:连接被拒绝)

7 月 5 日 02:58:58 中继 postfix/qmgr[1588]: 3F1AB42132: from=, size=3404, nrcpt=1 (queue active)

7 月 5 日 02:59:28 中继后缀/smtp[1739]:3F1AB42132:to=,relay=none,delay=3327,delays=3297/0/30/0,dsn=4.4.1,status=deferred(连接到ab.xyz.com[10.40.40.130]:25:连接超时)

7 月 5 日 03:58:58 中继 postfix/qmgr[1588]: 3F1AB42132: from=, size=3404, nrcpt=1 (queue active)

7 月 5 日 03:59:28 中继后缀/smtp[1839]:3F1AB42132:to=,relay=none,delay=6928,delays=6897/0.03/30/0,dsn=4.4.1,status=deferred(连接到ab.xyz.com[10.41.0.101]:25:连接被拒绝)

7 月 5 日 04:11:03 中继 postfix/qmgr[2039]: 3F1AB42132: from=, size=3404, nrcpt=1 (queue active)

7 月 5 日 04:11:33 中继后缀/错误[2093]:3F1AB42132:to=,relay=none,delay=7653,delays=7622/30/0/0,dsn=4.4.1,status=deferred(暂时传递暂停:连接到 ab.xyz.com[10.41.0.101]:25:连接被拒绝)

7 月 5 日 05:21:03 中继 postfix/qmgr[2039]: 3F1AB42132: from=, size=3404, nrcpt=1 (queue active)

Jul 5 05:21:33 relay postfix/error[2217]: 3F1AB42132: to=, relay=none, delay=11853, delays=11822/30/0/0, dsn=4.4.1, status=deferred暂停:连接到 ab.xyz.com[10.41.0.101]:25:连接被拒绝)

7 月 5 日 06:29:25 中继 postfix/qmgr[2420]: 3F1AB42132: from=, size=3404, nrcpt=1 (queue active)

7 月 5 日 06:29:55 中继后缀/错误[2428]:3F1AB42132:to=,relay=none,delay=15954,delays=15924/30/0/0.08,dsn=4.4.1,status=deferred(暂时传递暂停:连接到 ab.xyz.com[10.41.0.101]:25:连接被拒绝)

7 月 5 日 07:39:24 中继 postfix/qmgr[2885]: 3F1AB42132: from=, size=3404, nrcpt=1 (queue active)

Jul 5 07:39:54 relay postfix/error[2936]: 3F1AB42132: to=, relay=none, delay=20153, delays=20123/30/0/0, dsn=4.4.1, status=deferred暂停:连接到 ab.xyz.com[10.40.40.130]:25:连接超时)

MV.*_*MV. 14

它们很可能是错误的电子邮件地址或您的 DNS 解析失败。

Postfix会根据ab.xyz.com域的MX记录尝试连接SMTP服务器投递邮件,但是如果Postfix找不到MX记录,它会尝试投递到A记录的IP。(这是预期的行为)。

但是,如果电子邮件地址域错误(例如,未键入)该域可能存在但可能没有 MX 记录,并且 A 记录中的 IP 是没有 SMTP 服务器的主机。

例如,这里的一些人输入myaddress@hotmail.com.mx(正确的地址是myaddress@hotmail.com),但是hotmail.com.mx域确实存在但没有 MX 记录,因此 Postfix 尝试,尝试,并尝试交付给A永远不会在端口应答的记录主机25,导致日志条目如下:

Jul  5 17:03:37 www postfix/smtp[3149]: 6608A108FD2: to=<xyz@hotmail.com.mx>, relay=none, delay=197971, delays=197971/0.02/0.18/0, dsn=4.4.1, status=deferred (connect to hotmail.com.mx[200.94.181.9]:25: Connection refused)
Run Code Online (Sandbox Code Playgroud)