地址改变后,邮件被反弹

我有一台Apache服务器,在过去的几年中一直很高兴地发送邮件 – 本周早些时候,postifx发送的所有邮件的发件人地址都发生了变化,结果99%的邮件被反弹或标记为垃圾邮件。

我不知道服务器或DNS发生了任何变化,但电子邮件正在被反弹和列入黑名单。

在我的maillog中,我有两个相隔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 

主要区别在于,从地址已经从[email protected]更改为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 

任何想法可能导致这一点,更重要的是,我该如何解决这个问题?

使用伪造地址作为信封发件人是造成这个问题。

您收到的具体错误消息表明这是问题所在:

 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)) 

看看它说“帐户或域可能不存在”

那是你的问题。 使用有效的地址(包括使用有效的域名)作为您的信封发件人,以及您的From头。