大网数据广告活动
服务器运维问答

Postfix What does "Queued mail for delivery" mean?

· 52CE 我爱测

I sent an email to 2 receipients and I checked maillog: tail -5000 maillog | grep "020EE4202065" Aug 7 17:31:24 mail postfix/smtpd[7478]: 020EE4202065: client=NodoOffice[118.70.28.223], sasl_method=PLAIN, sasl_username=ngadt@my_g…

问题原文

原帖链接 · ThanhLoyal · CC BY-SA 3.0

I sent an email to 2 receipients and I checked maillog:

tail -5000 maillog | grep "020EE4202065"

Aug  7 17:31:24 mail postfix/smtpd[7478]: 020EE4202065: client=NodoOffice[118.70.28.223], sasl_method=PLAIN, sasl_username=ngadt@my_great_company.com
Aug  7 17:31:24 mail postfix/cleanup[7485]: 020EE4202065: message-id=<6b36518e-14b1-6fac-dd27-c4c900aff87c@my_great_company.com>
Aug  7 17:31:28 mail opendkim[1717]: 020EE4202065: DKIM-Signature field added (s=default, d=my_great_company.com)
Aug  7 17:31:28 mail postfix/qmgr[2817]: 020EE4202065: from=<ngadt@my_great_company.com>, size=5481240, nrcpt=2 (queue active)
Aug  7 17:31:32 mail postfix/smtp[7487]: 020EE4202065: to=<[email omitted]>, relay=mail.the-bank.com.vn[103.11.172.xx]:25, delay=8.3, delays=4.3/0.07/0.31/3.6, dsn=2.6.0, status=sent (250 2.6.0 <6b36518e-14b1-6fac-dd27-c4c900aff87c@my_great_company.com> [InternalId=23138874] Queued mail for delivery)
Aug  7 17:31:53 mail postfix/smtp[7486]: 020EE4202065: to=<[email omitted]>, relay=gmail-smtp-in.l.google.com[74.125.204.26]:25, delay=30, delays=4.3/0.03/3/23, dsn=2.0.0, status=sent (250 2.0.0 OK 1502101899 g4si5235454plk.325 - gsmtp)
Aug  7 17:31:53 mail postfix/qmgr[2817]: 020EE4202065: removed

I noticed that there is an extra info

[InternalId=23138874] Queued mail for delivery

in the line to=<[email omitted]> and [email omitted] says that she doesn't see that email in her mailbox.

Could you please explain what does that (Queued mail for delivery) mean? And did email server at the-bank.com.vn received that email?

Thank you!

已采纳解答

原帖链接 · USD Matt · CC BY-SA 3.0

Just to add some extra info to this. Regarding lines like the following -

Aug  7 17:31:32 mail postfix/smtp[7487]: 020EE4202065: to=<[email omitted]>, relay=mail.the-bank.com.vn[103.11.172.xx]:25, delay=8.3, delays=4.3/0.07/0.31/3.6, dsn=2.6.0, status=sent (250 2.6.0 <6b36518e-14b1-6fac-dd27-c4c900aff87c@my_great_company.com> [InternalId=23138874] Queued mail for delivery)

The important things for you are relay=mail.the-bank.com.vn and status=sent. Those two fields basically confirm that your server connected to mail.the-bank.com.vn in order to deliver the email, and that server accepted the message. From that point on your server has done its job and it's up to the recipient's server to continue delivery.

About this message on the end -

(250 2.6.0 <6b36518e-14b1-6fac-dd27-c4c900aff87c@my_great_company.com> [InternalId=23138874] Queued mail for delivery)

When an SMTP client connects to a mail server, it sends a sequence of commands, like the following example (C = Client, S = Server)

C> MAIL FROM: [email omitted]
S> 250 2.1.0 OK
C> RCPT TO: [email omitted]
S> 250 2.1.5 Ok
... etc ...

Each command sent by the client gets a response from the server which starts with a status code, 2xx codes being success. There's also usually a second code after this, but the rest of the line can generally be whatever the server wants to send.

The text in brackets in the log is the entire line returned by the recipient's server when your system finished giving it the message. This starts with the status code (success in this case), but the rest of it is just whatever the server wanted to send.

In this case that looks like the normal response from an Exchange server (IIRC), and basically says thanks, I've put the message in my queue ready to deliver. (Most mail servers have processes that handle accepting inbound mail, placing it in a inbound-delivery queue, and separate processes that actually deliver the message to mailboxes.)

Having this in the log is often useful for debugging because it usually contains the message ID the recipient server assigned the message (If the recipient's mail admin can't find the message you can give them the log entry / id). Gmail return the following for instance, which appears to be their timestamp (handy if someone complains about a message at 10:45:23, but after scouring logs you discover the sender's time is 3 hours out), and an ID.

(250 2.0.0 OK 1502179523 b127si743181wmc.127 - gsmtp)

Basically, SMTP server developers usually put text in that last response that will help that server's administrator locate/track the message.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2017-08-08)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。