AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 405152
Accepted
TryTryAgain
TryTryAgain
Asked: 2012-07-06 10:39:20 +0800 CST2012-07-06 10:39:20 +0800 CST 2012-07-06 10:39:20 +0800 CST

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

  • 772

我收到这些错误:

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

这是一个 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

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

一些输出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: message-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=,中继=无,延迟=30,延迟=0.02/0/30/0,dsn=4.4.1,状态=延迟(连接到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 中继 postfix/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=,中继=无,延迟=1527,延迟=1497/0/30/0,dsn=4.4.1,状态=延迟(连接到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=,中继=无,延迟=3327,延迟=3297/0/30/0,dsn=4.4.1,状态=延迟(连接到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 中继 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: 连接被拒绝)

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)

7 月 5 日 05:21:33 中继后缀/错误 [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)

7 月 5 日 07:39:54 中继后缀/错误 [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:连接超时)

smtp postfix
  • 2 2 个回答
  • 25819 Views

2 个回答

  • Voted
  1. Best Answer
    MV.
    2012-07-06T18:27:50+08:002012-07-06T18:27:50+08:00

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

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

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

    例如,这里有些人打字[email protected](正确的地址是[email protected]),但是该hotmail.com.mx域确实存在但没有 MX 记录,因此 Postfix 尝试并尝试将其传递给A永远不会在端口应答的记录主机25,导致日志条目如下:

    Jul  5 17:03:37 www postfix/smtp[3149]: 6608A108FD2: to=<[email protected]>, 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)
    
    • 14
  2. Won Jun Bae
    2015-11-15T13:24:56+08:002015-11-15T13:24:56+08:00

    当您看到这样的日志时要检查的其他事项是,

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

    • 2

相关问题

  • Postfix 或 exim:自动/程序化和转发电子邮件设置

  • 如何将 SMTP 直接从 IIS 6.0 服务器中继到 Exchange 2003 服务器

  • 使用 telnet 或 netcat 发送带有附件的电子邮件

  • 我应该使用什么策略在 linux 上安装 smtp 服务器?用于多线程服务

  • 适用于 Linux 的 SMTP 服务器,配置简单

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve