Global
The value is the From header line for the generated report. The substitutions are the same nine as in the other templates; their list is at dsn-failed-body-template-from.
There are two lines with this purpose. The older custom-dsn-from-header sets the header verbatim, without substitutions; this one — with them. That is the whole difference, and there is no point keeping both in the configuration.
The manual names no default — if it is not written, the engine uses its own.
The second half is the usual one for this group: the manual writes the substitution name in two ways, and a wrong spelling will stay in the header as is.
The same question — “where will a person who saw our service message write to” — the Hub solves elsewhere: receiving to role addresses is opened by the /^(dmarc|postmaster|abuse)@/ rule, and mail there is handled by the processor.
What to set. There is one requirement, and it is not about the format:
| Value | When |
|---|---|
| do not write it | reports are not generated or are parsed by a machine |
| the address of a mailbox that is read | reports go to people, and they will reply to them |
Substituting the node name into the display name is handy in investigations: it shows at once which node generated the report.
# the node name in the display name helps in investigations dsn-failed-from-template "${hostname} <postmaster@abc.com>"
what people get wrong and how it ends2 mistakes▶
our experience
§ 3.3.1.28
1 relation
grep -n 'dsn-failed-from-template\|custom-dsn-from-header\|suppress-local-dsn' /etc/pmta/config
3 articles
◇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.◇Two inbound report processors and what to do with themBounces by message and complaints are parsed by two identically structured blocks; each has its own address list and its own pair of decisions about the message’s fate.◇Address lists — named and unnamedA list of addresses, domains, patterns or hashes; a named one is attached by directives such as suppression, an unnamed one lives inside an inbound mail processor.