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

7月5日11:09:25 relay postfix / smtp [3084]:连接到ab.xyz.com [10.41.0.101]:25:连接被拒绝Jul 5 11:09:25 relay postfix / smtp [3087]:connect to ab .xyz.com [10.41.0.247]:25:拒绝连接Jul 5 11:09:25 relay postfix / smtp [3088]:连接到ab.xyz.com [10.41.0.101]:25:拒绝连接Jul 5 11: 09:25 relay postfix / smtp [3084]:连接ab.xyz.com [10.41.0.247]:25:连接拒绝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]:连接到ab.xyz.com [10.41.0.110]:25:连接被拒绝Jul 5 11:09:25 relay postfix / smtp [3084]:连接到ab.xyz.com [10.41.0.102]:25:连接被拒绝Jul 5 11:09:30 relay postfix / smtp [3085]:连接到ab.xyz.com [10.41.0.102 ]:25:拒绝连接Jul 5 11:09:30 relay postfix / smtp [3086]:连接ab.xyz.com [10.41.0.247]:25:连接拒绝Jul 5 11:09:30 relay postfix / smtp [ 3086]:连接到ab.xyz.com [10.41.0.102]:25:连接被拒绝Jul 5 11:0 9:55 relay postfix / smtp [3087]:连接到ab.xyz.com [10.40.40.130]:25:连接超时Jul 5 11:09:55 relay postfix / smtp [3084]:connect to ab.xyz。 com [10.40.40.130]:25:连接超时Jul 5 11:09:55 relay postfix / smtp [3088]:连接到ab.xyz.com [10.40.40.130]:25:连接超时Jul 5 11:09 :55中继postfix / smtp [3087]:连接到ab.xyz.com [10.41.0.135]:25:连接被拒绝Jul 5 11:09:55 relay postfix / smtp [3084]:connect to ab.xyz.com [ 10.41.0.110]:25:拒绝连接Jul 5 11:09:55 relay postfix / smtp [3088]:连接到ab.xyz.com [10.41.0.247]:25:拒绝连接

这是一个DNS的事情,值得怀疑,因为我已经从我们的本地DNS更改为谷歌的..仍然Postfix有时会尝试连接到ab.xyz.com从各种地址可能或可能不具有端口25打开,邮件服务器开始。

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

  • 邮件正在发送正确,除此之外,它似乎都是好的。

偶尔我也会看到:

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

我有很less的限制后缀设置:

mynetworks = 127.0.0.0/8, 10.0.0.0/8 

只要。 就像我说的那样,所有的邮件似乎都已经通过了,但是我讨厌看到错误,这让我感到困惑,为什么它会试图连接到日志中看到的其他机器。

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

Jul 5 02:04:01 relay postfix / smtpd [1653]:3F1AB42132:client = unknown [10.41.0.109]

Jul 5 02:04:01 relay postfix / cleanup [1655]:3F1AB42132:message-id =

7月5日02:04:01 relay postfix / qmgr [1588]:3F1AB42132:from =,size = 3404,nrcpt = 1(队列激活)

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

Jul 5 02:13:58 relay postfix / qmgr [1588]:3F1AB42132:from =,size = 3404,nrcpt = 1(队列激活)

Jul 5 02:14:28 relay postfix / smtp [1681]:3F1AB42132:to =,relay = none,delay = 628,delay = 598 / 0.01 / 30/0,dsn = 4.4.1,status = deferred ab.xyz.com [10.41.0.247]:25:拒绝连接)

Jul 5 02:28:58 relay postfix / qmgr [1588]:3F1AB42132:from =,size = 3404,nrcpt = 1(队列激活)

Jul 5 02:29:28 relay postfix / smtp [1684]:3F1AB42132:to =,relay = none,delay = 1527,delay = 1497/0/30/0,dsn = 4.4.1,status = deferred ab.xyz.com [10.41.0.135]:25:拒绝连接)

Jul 5 02:58:58 relay postfix / qmgr [1588]:3F1AB42132:from =,size = 3404,nrcpt = 1(队列激活)

Jul 5 02:59:28 relay postfix / smtp [1739]:3F1AB42132:to =,relay = none,delay = 3327,delay = 3297/0/30/0,dsn = 4.4.1,status = deferred ab.xyz.com [10.40.40.130]:25:连接超时)

Jul 5 03:58:58 relay postfix / qmgr [1588]:3F1AB42132:from =,size = 3404,nrcpt = 1(队列激活)

Jul 5 03:59:28 relay postfix / 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:拒绝连接)

Jul 5 04:11:03 relay postfix / qmgr [2039]:3F1AB42132:from =,size = 3404,nrcpt = 1(队列激活)

Jul 5 04:11:33 relay postfix / error [2093]:3F1AB42132:to =,relay = none,delay = 7653,delayed = 7622/30/0/0,dsn = 4.4.1,status = deferred暂停:连接到ab.xyz.com [10.41.0.101]:25:连接被拒绝)

7月5日05:21:03 relay postfix / qmgr [2039]:3F1AB42132:from =,size = 3404,nrcpt = 1(队列激活)

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

Jul 5 06:29:25 relay postfix / qmgr [2420]:3F1AB42132:from =,size = 3404,nrcpt = 1(队列激活)

Jul 5 06:29:55 relay postfix / error [2428]:3F1AB42132:to =,relay = none,delay = 15954,delay = 15924/30/0 / 0.08,dsn = 4.4.1,status = deferred暂停:连接到ab.xyz.com [10.41.0.101]:25:连接被拒绝)

Jul 5 07:39:24 relay postfix / qmgr [2885]:3F1AB42132:from =,size = 3404,nrcpt = 1(队列激活)

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

他们很可能是错误的电子邮件地址或您的DNSparsing失败。

Postfix将根据ab.xyz.com域的MXlogging尝试连接到SMTP服务器来发送邮件,但是如果Postfix找不到MXlogging,它将尝试传递到Alogging的IP。 (这是预期的行为)。

但是,如果电子邮件地址域错误(例如input错误),域可能存在,但可能没有MXlogging,Alogging中的IP是没有SMTP服务器的主机。

例如,这里的一些人[email protected](正确的地址是[email protected]),但是hotmail.com.mx域确实存在,但是没有MXlogging,所以Postfix尝试,并尝试,并试图传递给一个永远不会在25端口回答的Alogging主机,导致日志条目如:

7月5日17:03:37 www postfix / smtp [3149]:6608A108FD2:to =,relay = none,delay = 197971,delayed = 197971 / 0.02 / 0.18 / 0,dsn = 4.4.1,status = deferred hotmail.com.mx [200.94.181.9]:25:拒绝连接)

当你看到像这样的日志时检查的其他事情是,

myhostname和mydestination需要在/etc/postfix/main.cf中正确设置