<address-list>set by the Hub
The most flexible of the five list lines. The engine understands what exactly you wrote by its form:
A full address — foo@bar.com — matches it and only it. A local part — foo without a domain — matches this mailbox name in any domain. A pattern in slashes — /^bounce@/ — a regular expression in the Perl dialect.
The difference between the first and second forms deserves attention. foo is not “an address without a domain” but a rule for all domains at once; in a suppression list such a line turns off foo@ at every recipient domain.
The line is repeated as many times as there are entries.
Three forms and when to use which:
| Form | What matches | Caution |
|---|---|---|
| foo@bar.com | exactly this address | none |
| foo | foo@ in any domain | broader than it seems |
| /^bounce@/ | everything by the pattern | the cost of a mistake is the same as for any regular expression |
Escape dots in a pattern. /^bounce@bounce\./ and /^bounce@bounce./ are different things: in the second the dot means any character.
# three forms in one list — and all three mean different things <address-list suppression1> address foo@bar.com address foo address /^bounce@/ </address-list>
what people get wrong and how it ends2 mistakes▶
§ 3.3.5.1
our experience
2 relations
Address lists — named and unnamedThe main one of the five lines that fill a list. § 3.3.5.1
hashed-address<address-list>The same entry in open form: more flexible, but readable by anyone with access to the configuration. § 3.3.5.2address-file<address-list>The same entry, but one per line of a file rather than in the configuration. § 3.3.5.3The regular expression dialectThe directive that enables this mechanism. § 3.2
pmtaacctfind --output csv[rcpt,dsnDiag] /var/log/pmta/acct-*.csv
3 articles
◇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.◇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.