<smtp-pattern-list>
The form and the rules are the same: a path, a mask or an HTTP address. The lines are read as rules of this receiver response parsing list.
Moving to a file is especially appropriate here. Response parsing rules are the longest and most active part of the configuration: receivers change their wording, new codes appear, the list grows. Keeping it apart from the rest of the configuration and updating it centrally is the natural way to work.
It can be repeated — the manual shows a file and an address in a row.
Three forms of the value, as at the node level:
| Value | When |
|---|---|
| a file path | a long list is moved out of the configuration |
| a mask | a set of files per receiver |
| an HTTP address | rules are updated centrally |
The line’s place matters more than its value. Put the include where the included rules should end up by priority: narrow ones above broad ones.
# a long rule list is moved out and updated separately <smtp-pattern-list blockList> include /etc/pmta/patterns.txt include https://10.1.2.3:4000/smtp/patterns.txt </smtp-pattern-list>
what people get wrong and how it ends2 mistakes▶
§ 3.3.15.1
§ 3.3.15.1
2 relations
includeGlobalThe same directive at the root of the file; there it adds node-level lines. § 3.3.1.53
grep -rn -A30 '<smtp-pattern-list' /etc/pmta/
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.◇The group that grants management rightsMembership in the pmta group gives an unprivileged user the right to call the node’s commands and use submission.◇How the node selects a source and combines its settingsA connection falls under all source blocks whose addresses cover it, and they act merged — the narrow one overrides the wide one; named blocks are attached only by direct reference.