邮件日志中充满了退回邮件和未送达通知,我不明白或不知道如何防止这种情况发生

邮件日志中充满了退回邮件和未送达通知,我不明白或不知道如何防止这种情况发生

我的设置的基本预览。我在私有网络上有一组 centos 7.4 服务器,全部运行 postfix。它们都设置为通过设置为邮件中继的 postfix 服务器(称为 proxy1)发送邮件。

最近我修改了节点和中继,增加了将所有地址更改为[电子邮件保护]这样,这些消息就比同样无法到达的 [root 或其他用户]@server.ourdomain.com... 更友好了,所有消息看起来都像是来自 noreply@

但是现在,我认为这个问题从那时起才开始出现,我在我的邮件日志中收到大量以下消息:

Feb 23 16:06:15 proxy1 postfix/cleanup[24600]: 763D06006713: message-id=<[email protected]>
Feb 23 16:06:15 proxy1 postfix/bounce[24606]: 665566044455: sender non-delivery notification: 763D06006713
Feb 23 16:06:15 proxy1 postfix/qmgr[24499]: 665566044455: removed
Feb 23 16:06:15 proxy1 postfix/qmgr[24499]: 763D06006713: from=<[email protected]>, size=15491, nrcpt=1 (queue active)
Feb 23 16:06:15 proxy1 postfix/cleanup[24601]: 7A4E6600670C: message-id=<[email protected]>
Feb 23 16:06:15 proxy1 postfix/bounce[24603]: 6946D605B401: sender non-delivery notification: 7A4E6600670C
Feb 23 16:06:15 proxy1 postfix/qmgr[24499]: 6946D605B401: removed
Feb 23 16:06:15 proxy1 postfix/qmgr[24499]: 7A4E6600670C: from=<[email protected]>, size=25459, nrcpt=1 (queue active)
Feb 23 16:06:15 proxy1 postfix/smtp[24592]: 72CF3605B580: to=<[email protected]>, relay=aspmx.l.google.com[173.194.204.26]:25, conn_use=456, delay=0.05, delays=0.01/0/0.03/0.02, dsn=5.1.1, status=bounced (host aspmx.l.google.com[173.194.204.26] said: 550-5.1.1 The email account that you tried to reach does not exist. Please try 550-5.1.1 double-checking the recipient's email address for typos or 550-5.1.1 unnecessary spaces. Learn more at 550 5.1.1  https://support.google.com/mail/?p=NoSuchUser o51si1742457qtb.481 - gsmtp (in reply to RCPT TO command))
Feb 23 16:06:18 proxy1 postfix/bounce[24609]: 1EA17605B586: sender non-delivery notification: 2EB73605B584

这些邮件不断涌来,我估计除了填满我的日志和堵塞我的队列之外,aspmx.l.google.com 也一定很不高兴。

查看其他帖子时,我看到了关于将其添加到我的别名中的建议:

noreply: /dev/null

这实际上似乎可以删除日志文件和填充队列中的滚动消息。

但是,我不知道我是否只是掩盖了症状而留下了根本原因,或者这是否是真正的答案。

我的问题是我不知道我们为什么会收到所有这些消息。

通常,Linux 中没有用户发送任何电子邮件,除了偶尔从 root 和其他几个帐户发送一些状态作业和日志。我们还在顶层安装了分层应用程序,通过邮件运行一些事情,比如 OpenNMS,这可能会很嘈杂。但是,我们实际上并不想要任何回复。这只是出站邮件中继。我没有设置为接收任何回复,也不想这样做。

那么,这是正确的方法还是其他?

相关内容