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

我希望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, ... 

我怎样才能在我的main.cfconfiguration这个?

答案:

master.cf

 bounce unix - - n - 0 bounce 

应改为:

master.cf

 bounce unix - - n - 0 discard 

要控制发送通知的位置,以及何时查看以下设置:

 bounce_notice_recipient notify_classes 

这两个在这里描述: http : //www.postfix.org/bounce.8.html

postconf文档列出8种types的通知类: bounce2bouncedatadelaypolicyprotocolresourcesoftware 。 我build议如下:

 notify_classes = 2bounce, data, delay, resource, software 

您会收到有关退回的无法投递的邮件,后缀( dataresourcesoftware )问题以及因技术原因无法发送的邮件(可能表明您的问题, delay )的通知。

bouncepolicy将通知您有关拒绝/退回的邮件,以及有关垃圾邮件发送者或类似协议(他们违反了SMTP协议)