Postfix What does "Queued mail for delivery" mean?
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 protected]>, 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 protected]
S> 250 2.1.0 OK
C> RCPT TO: [email protected]
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.
That's already answered in the comments but for the technical explanation.
In that message all the part between parenthesis are the "other side" response. The first number is the return code. 250
is the OK of the SMTP (simple mail transfer protocol) and is the only response mandatory the rest varies from server to server and between actions
http://www.rfc-editor.org/rfc/rfc2821.txt section 4.2.2