如何在 postfix 中禁用“发件人未送达通知”?

Dav*_* MZ 8 linux ubuntu postfix email-bounces

我希望 postfix停止向我的本地帐户发送未送达通知,这是我日志中的示例

17:47:08  A727B62C6F61: message-id=<20121124174708.A727B62C6F61@mail.***********>
17:47:08  F151362C6F5F: sender non-delivery notification: A727B62C6F61
17:47:08  A727B62C6F61: from=<>, size=4676, nrcpt=1 (queue active)
17:47:08  F151362C6F5F: removed
17:47:08  warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
17:47:08  A727B62C6F61: to=<**********>, relay=local, delay=0.01, delays=0/0.01/0/0, ...
Run Code Online (Sandbox Code Playgroud)

如何在我的 main.cf 中配置它?

小智 8

答案:

大师.cf

bounce    unix  -       -       n       -       0       bounce
Run Code Online (Sandbox Code Playgroud)

应改为:

大师.cf

bounce    unix  -       -       n       -       0       discard
Run Code Online (Sandbox Code Playgroud)

  • 请给出一些关于为什么不好的解释,downvoters。 (7认同)
  • @masegaloeh 这不是一个很好的理由,因为在我的情况下,退回原因是从日志中提取的,而退回消息是对资源的浪费。完全没有帮助您阻止答案,因为它不适合您但其他人的用例。 (7认同)
  • 重写了[Gryphius的评论](http://serverfault.com/questions/452013/how-to-disable-sender-non-delivery-notification-in-postfix?rq=1#comment493404_452013)此解决方案将禁用退回邮件服务,这不是解决方案,强烈建议不要这样做,因为退回邮件是电子邮件系统的重要组成部分。相反,您应该首先调查为什么会产生这些退回邮件,并帮助您解决真正的问题。 (2认同)

ada*_*ptr 5

要控制退回通知的发送位置和时间,请查看以下设置:

bounce_notice_recipient
notify_classes
Run Code Online (Sandbox Code Playgroud)

两者均在此描述: http: //www.postfix.org/bounce.8.html