closures发送邮件中发送失败的通知

我如何停用sendmail中的所有递送失败通知?

我有一个内部testing机器托pipetesting人员的网站。 这些网站通过PHP使用sendmail。 现在,只要testing人员input一个虚拟地址,我就会在我的本地邮箱中收到通知。 由于这是一个内部testing机器,我对这些邮件不感兴趣,并且通知会将我的邮箱垃圾邮件(有28000封邮件)。

你有没有在sendmail.cf中设置PostmasterCopy?

grep PostmasterCopy /etc/mail/sendmail.cf 

YES =>您可以closures它

confCOPY_ERRORS_TO PostmasterCopy

在testing机器上捕获/发送邮件到本地邮箱/别名,例如capture

sendmail.mc行捕获所有外发电子邮件(sendmail.mc需要编译到sendmail.cf):

 define(`SMART_HOST',`local:capture')dnl 

mailertable线捕获电子邮件到特定的testing域:

 example.com local:capture1 example.net local:capture2 example.org local:capture3 # entry for sub-domains of example.org .example.org local:capture3 # entry for "all remaning domains" . local:capture