我有一台 Apache 服务器,过去几年它一直顺利地发送电子邮件 - 本周早些时候,postifx 发送的所有电子邮件的发件人地址都发生了变化,结果 99% 的邮件被退回或标记为垃圾邮件。
我不知道服务器或 DNS 做了任何更改,但电子邮件被退回并列入黑名单。
在我的邮件日志中,我有两条相隔 7 分钟发送的消息 - 第一条消息没有问题并且已发送,但随后的所有消息都被退回:
Sep 3 08:04:52 web01 postfix/pickup[1760]: 9E75E490081: uid=48 from=<apache>
Sep 3 08:04:52 web01 postfix/cleanup[2597]: 9E75E490081: warning: header To:
RECIPIENT1, from local; from=<[email protected]>
Sep 3 08:04:52 web01 postfix/cleanup[2597]: 9E75E490081: warning: header
Subject: Subject from local; from=<[email protected]>
Sep 3 08:04:52 web01 postfix/cleanup[2597]: 9E75E490081: message-id
<[email protected]>
Sep 3 08:04:52 web01 postfix/qmgr[1069]: 9E75E490081: from=<[email protected]>,
size=850, nrcpt=1 (queue active)
Sep 3 08:05:06 web01 postfix/smtp[2600]: 9E75E490081: to=<RECIPIENT1>,
relay=RELAY[XX.XX.XX.XX]:25, delay=14, delays=0.34/0.02/2.4/12, dsn=2.0.0,
status=sent (250 OK id=1XP5Yn-000AW9-Bm)
Sep 3 08:05:06 web01 postfix/qmgr[1069]: 9E75E490081: removed
主要区别在于发件人地址已从[电子邮件保护]至 apache.domain.domain 并且 domain.com 已更改为仅域:
Sep 3 08:11:31 web postfix/pickup[1065]: 35425490081: uid=48 from=<apache>
Sep 3 08:11:31 web postfix/cleanup[1634]: 35425490081: warning: header To:
RECIPIENT2, from local; from=<[email protected]>
Sep 3 08:11:31 web postfix/cleanup[1634]: 35425490081: warning: header Subject:
Subject from local; from=<[email protected]>
Sep 3 08:11:31 web postfix/cleanup[1634]: 35425490081: message-id
<[email protected]>
Sep 3 08:11:31 web postfix/qmgr[1066]: 35425490081: from=<[email protected]>,
size=855, nrcpt=1 (queue active)
Sep 3 08:11:35 web postfix/smtp[1637]: 35425490081: to=<RECIPIENT2>,
relay=RELAY2[XX.XX.XX.XX]:25, delay=4.8, delays=0.12/0.02/2.7/2, dsn=5.0.0,
status=bounced (host RELAY2[XX.XX.XX.XX] said: 550-Verification failed for
<[email protected]> 550-The mail server could not deliver mail to
[email protected]. The account or domain may not exist, they may be
blacklisted, or missing the proper dns entries. 550 Sender verify failed
(in reply to RCPT TO command))
Sep 3 08:11:36 web postfix/cleanup[1634]: 2497D554007: message-id=
<[email protected]>
Sep 3 08:11:36 web postfix/bounce[1639]: 35425490081: sender non-delivery
notification: 2497D554007
Sep 3 08:11:36 web postfix/qmgr[1066]: 2497D554007: from=<>, size=3591,
nrcpt=1 (queue active)
Sep 3 08:11:36 web postfix/qmgr[1066]: 35425490081: removed
知道是什么原因造成的吗?更重要的是,我该如何解决这个问题?
答案1
使用虚假地址作为信封发件人是导致此问题的原因。
您收到的具体错误消息表明存在以下问题:
550-Verification failed for
<[email protected]> 550-The mail server could not deliver mail to
[email protected]. The account or domain may not exist, they may be
blacklisted, or missing the proper dns entries. 550 Sender verify failed
(in reply to RCPT TO command))
看看它说在哪里“该帐户或域可能不存在”
这就是你的问题。使用有效地址(包括使用有效域)作为你的信封发件人,以及你的发件人标头。