Global
The value is the subject line. The same nine values of the original message are substituted into it as into the report body: dsn-failed-body-template-from lists them in full.
The point of the setting is recognizability. The report reaches a person or a machine parser, and the subject decides whether it is told apart from other mail: the original message’s subject in it helps link the report to the mailing.
The manual names no default — if it is not written, the engine uses its own.
The second half is the same as with the body template: the manual writes the substitution name in two ways, and a wrong spelling causes no error but stays in the subject as is. Check it with a message.
What to set. The subject solves one task — recognizability:
| Value | When |
|---|---|
| do not write it | reports are read by a machine by standard fields, not by subject |
| your own string without substitutions | reports are read by a person, and it is enough to recognize them as reports |
| a string with the original message’s subject | you need to link a report to a specific mailing by eye |
The third is the most convenient and the worst in terms of what goes outside.
# the original message's subject helps link the report to the mailing dsn-failed-subject-template "Email failed, Re: ${subject}"
what people get wrong and how it ends2 mistakes▶
our experience
§ 3.3.1.31
1 relation
grep -n 'dsn-failed-subject-template\|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.