Postfix DSN成功报告

时间:2015-07-16 12:22:24

标签: notifications report postfix-mta

我有Postfix。

当我尝试向不存在的地址发送电子邮件时,Postfix会生成有关退回的通知。

我找到Postfix DSN Support:它说"发送了什么通知:成功,失败,延迟或无。通常,只有当邮件传递延迟或传递失败时,Postfix才会通知发件人。"

如何启用成功通知?

更新

我找到了解决方案(here

  

交货状态通知:它是如何运作的?

     

sendmail 8.7无法从命令行请求DSN,它可以   只能在ESMTP对话中完成。这非常合理,因为   选项(如sendmail 8.8中所介绍的)几乎不够灵活   允许这样的东西(从RFC稍微修改):

关键是

  

RCPT TO:NOTIFY =成功,延迟   ORCPT = RFC822; Bob@Big-Bucks.COM

以下是通过telnet进行SMTP会话的示例:

R: 220 Pure-Heart.ORG SMTP server here
S: EHLO Pure-Heart.ORG
R: 250-Pure-Heart.ORG
R: 250-DSN
R: 250 SIZE
S: MAIL FROM:<Alice@Pure-Heart.ORG> RET=HDRS ENVID=QQ314159
R: 250 <Alice@Pure-Heart.ORG> sender ok
S: RCPT TO:<Bob@Big-Bucks.COM> NOTIFY=SUCCESS,DELAY ORCPT=rfc822;Bob@Big-Bucks.COM
R: 250 <Bob@Big-Bucks.COM> recipient ok
S: RCPT TO:<Carol@Ivory.EDU> NOTIFY=FAILURE ORCPT=rfc822;Carol@Ivory.EDU
R: 250 <Carol@Ivory.EDU> recipient ok
S: RCPT TO:<Dana@Ivory.EDU> NOTIFY=SUCCESS,FAILURE ORCPT=rfc822;Dana@Ivory.EDU
R: 250 <Eric@Bombs.AF.MIL> recipient ok
S: RCPT TO:<Fred@Bombs.AF.MIL> NOTIFY=NEVER
R: 250 <Fred@Bombs.AF.MIL> recipient ok

0 个答案:

没有答案