postfix/pickup 和 postfix/smtpd 之间的区别

postfix/pickup 和 postfix/smtpd 之间的区别

我正在处理邮件系统的 Postfix 日志。

我不明白为什么同一封邮件会出现两个不同的 ID,一个是“postfix/pickup”,另一个是“postfix/smtpd”。

Mar 29 03:04:12 dedy postfix/pickup[11199]: 5BF612027E1: uid=5022 from=<[email protected]>
Mar 29 03:04:12 dedy postfix/cleanup[14704]: 5BF612027E1: message-id=<[email protected]>

Mar 29 03:04:12 dedy opendkim[4792]: 5BF612027E1 "DKIM-Signature" header added

Mar 29 03:04:12 dedy postfix/qmgr[23001]: 5BF612027E1: from=<[email protected]>, size=2031, nrcpt=1 (queue active)

Mar 29 03:04:41 dedy postfix/smtpd[12194]: 338A6202793: client=localhost[127.0.0.1]
Mar 29 03:04:41 dedy postfix/cleanup[15283]: 338A6202793: message-id=<[email protected]>
Mar 29 03:04:41 dedy opendkim[4792]: 338A6202793 "DKIM-Signature" header added

Mar 29 03:04:41 dedy postfix/qmgr[23001]: 338A6202793: from=<[email protected]>, size=2885, nrcpt=1 (queue active)
Mar 29 03:04:41 dedy amavis[14879]: (14879-02-42) Passed CLEAN, <[email protected]> -> <[email protected]>, Message-ID: <[email protected]>, mail_id: S9mHT5YBZUEe, Hits: 2.344, size: 2392, queued_as: 338A6202793, 721 ms
Mar 29 03:04:41 dedy postfix/smtp[14903]: 5BF612027E1: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, conn_use=42, delay=29, delays=0.24/28/0/0.74, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=14879-02-42, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 338A6202793)
Mar 29 03:04:41 dedy postfix/qmgr[23001]: 5BF612027E1: removed

Mar 29 03:04:41 dedy postfix/smtp[12591]: 338A6202793: to=<[email protected]>, relay=mx2.hotmail.com[65.nn.nn.168]:25, delay=0.79, delays=0.09/0/0.36/0.33, dsn=5.0.0, status=bounced (host mx2.hotmail.com[65.nn.nn.168] said: 550 Requested action not taken: mailbox unavailable (in reply to RCPT TO command))

Mar 29 03:04:42 dedy postfix/bounce[14707]: 338A6202793: sender non-delivery notification: 1D3B5202773
Mar 29 03:04:42 dedy postfix/qmgr[23001]: 338A6202793: removed

我进行了一些研究,但还是不明白。

提前致谢。

答案1

您的电子邮件已收到。之后,它将被转发到 amavis(用于病毒和垃圾邮件检查):

Mar 29 03:04:41 dedy postfix/smtp[14903]: 5BF612027E1: to=<[email protected]>, relay=127.0.0.1[127.0.0.1]:10024, conn_use=42, delay=29, delays=0.24/28/0/0.74, dsn=2.0.0, status=sent (250 2.0.0 Ok, id=14879-02-42, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as 338A6202793)

然后 amavis 通过 smtpd 将其重新注入到 postfix:

Mar 29 03:04:41 dedy postfix/smtpd[12194]: 338A6202793: client=localhost[127.0.0.1]

因此,这是同一封电子邮件。

答案2

捡起守护进程基本上是一个监视其他进程放置文件的目录(maildrop)的进程。它不与外界通信(如 smtpd 或其他),它只是等待诸如 postdrop 之类的进程或其他本地传递进程(例如 amavisd-new 之类的内容扫描程序)将邮件发送给它们。然后将其传递给清理守护进程,在修改需要修改的内容后,它将设置它们以进行交付(远程或本地)。

相关内容