我每天都会被问到是否邮件被我们的服务器发送出去(因为客户抱怨说他把邮件发送给xy,而他的收件人从来没有收到)。 这很可能不是我们的错,但收件人邮件服务器将邮件标记为垃圾邮件。 所以我的问题是如何validation(如果可能的话)邮件是由我们的结束后缀发出?
如果我greap通过mail.log。*文件,我得到的条目如:
Sep 14 06:27:10 mailhost postfix/qmgr[21603]: 14B40C65A1: from=<user@domain.com>, size=1372, nrcpt=1 (queue active) Sep 14 06:27:10 mailhost postfix/qmgr[21603]: 11673C5FDA: from=<user@domain.com>, size=1469, nrcpt=1 (queue active)
这些信息是非常宝贵的。 通过这一切,我看到的是,user@domain.com在6:27发送一封电子邮件给某人 ,它是由邮件系统排队(不是它被发送和后来发生的事情)。
是否有可能使用后缀logging这些事件? 即使需要增加错误日志,我也需要这些信息。
谢谢
默认情况下,Postfix为它处理的一个外发邮件创build至less两个日志行:对于接收和发送部分。
Sep 15 10:30:51 mail postfix/qmgr[1499]: F1FBEC0666: from=<localuser@local.domain>, size=251, nrcpt=1 (queue active) Sep 15 10:30:51 mail postfix/smtp[25011]: F1FBEC0666: to=<remoteuser@remotedomain>, relay=xxxxxx[yyyyyyy]:25, delay=0.83, delays=0.15/0.01/0.27/0.39, dsn=2.0.0, status=sent (250 Requested mail action okay, completed: id=xxxxxxxxxxx) Sep 15 10:30:51 mail postfix/qmgr[1499]: F1FBEC0666: removed
我的猜测是你为本地用户,而不是远程用户grepped,因此没有看到第二行。 如果你真的不知道你在找什么,请不要使用grep
, less
在那里更有用。
您的邮件用户也可以在他的MUA中申请一个所谓的传递状态通知 。 这是一种反弹消息,除了包含的消息包含成功消息,就像这个例子:
Your message was successfully delivered to the destination(s) listed below. If the message was delivered to mailbox you will receive no further notifications. Otherwise you may still receive notifications of mail delivery errors from other systems. The mail system <receiver@example.com>: delivery via mx.example.org[199.4.28.26]:25: 250 Requested mail action okay, completed: id=2LMKVd-1Y2eA52oJa-70aFI9
该报告还包括消息何时到达哪个服务器的详细信息。
在Thunderbird中,可以在撰写窗口中激活DSN请求,如下所示:选项>传送状态通知。