<source>
The default is reception: the header gets the time the message was received and queued. With the value delivery — the time it was actually sent to the recipient.
The directive works only in a pair: the manual requires add-date-header to be set to yes or override. Without it there is nothing to add, and no time to choose.
For the recipient this looks like a fresh message they were expecting the day before yesterday — and figuring out why the mailing “arrived at the wrong time” will then be up to them.
For warm-up the choice would be unambiguous: reception time. The scheduler decides when to submit a message and considers that same time the mailing time; delivery time would move the date to where the queue left retry mode.
What to set. The question is what the message date means for you:
| Value | When |
|---|---|
| reception (default) | date = when it was sent; that is how both the recipient and your report understand it |
| delivery | date = when the recipient saw it; suitable for messages where the moment of reading matters |
The second makes sense for rare kinds of messages — notifications whose date must match the moment they appear in the mailbox. For a mailing the first is almost always right.
# choosing the time only makes sense together with adding the date <source 0/0> add-date-header yes date-header-time delivery</source>
what people get wrong and how it ends2 mistakes▶
§ 3.3.7.2
our experience
1 relation
grep -n 'add-date-header\|date-header-time' /etc/pmta/config /etc/pmta/virtualhost.txt
3 articles
◇How a message gets into the engineSix described submission methods: extended SMTP, four language bindings and a directory the node watches on disk.◇Who is allowed to submit mail and for whom to accept itOut of the box, the node accepts submission only from the machine itself; two different questions — “who can send through us” and “for whose addresses we accept mail” — are answered by different directives.◇Headers the sender uses to control deliverySix control headers let the submitting side choose a stream, tag a message with a job, set signing options and the key, the envelope identifier and the schedule; each is allowed separately and per source.