<address-list>
The line names a file; each of its lines becomes a list entry. Two forms are allowed — a full address and a local part without a domain, that is, exactly what address understands, except for patterns.
Why. A list of hundreds of lines does not bloat the configuration, is edited separately from it and can be updated by an external process.
A local part in the file means the same as in the configuration — a mailbox name in all domains. It is easier to make a mistake here: the lines in a file are short and uniform, and the difference between foo and foo@bar.com gets lost.
The value is a file path. What to consider when choosing a form:
| Form | When | What you pay |
|---|---|---|
| address in the configuration | a dozen entries | the configuration grows |
| this file | hundreds of entries | addresses in plain text |
| hashed-address-file | hundreds of entries that must not be shown | you cannot read the list either |
About the ceiling. The vendor advises against having more than five hundred patterns in one suppression list. The file does not accept patterns, so the limit applies to address lines with patterns in the same list, not to the file’s entries.
# the list is maintained separately from the configuration <address-list foo> address-file /etc/pmta/suppression-address-list.txt</address-list>
what people get wrong and how it ends2 mistakes▶
§ 3.3.5.3
our experience
2 relations
wc -l /etc/pmta/suppression-address-list.txt
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.◇Configuration through the API and the file do not reconcileObjects created through the configuration interface cannot be edited in the file: two sources of truth about the configuration do not reconcile.◇The bounce category in accounting — configurable, not vendor-fixedThe bounceCat string in every accounting record comes from a pattern list that can be extended with your own rules and your own category names.