<email-patterns>
The line adds to the log information about which pattern recognized a report or complaint. The default is off.
The line is needed exactly when there are several patterns. There can be many pattern files, and during an investigation it is unclear which of them matched — and what the engine extracted from the message depends on that.
The entry is short and telling: the name of the pattern file that matched.
This is a diagnostic switch: enabled when patterns are added or edited, and turned off afterwards.
The line will come in handy if a client gets their own pattern set for non-standard receiver reports.
Enabled for the duration of an investigation and turned off afterwards:
| Value | When |
|---|---|
| no (default) | normal operation |
| yes | setting up or editing a pattern set and you need to understand which one matched |
# for the duration of the investigation <email-patterns …> log-match-info true</email-patterns>
what people get wrong and how it ends2 mistakes▶
our experience
our experience
2 relations
grep -i "pattern" /var/log/pmta/log | tail -20
3 articles
◇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.◇A return address with the recipient written into itThe bounce arrives at a unique address, and there is no need to parse its content.◇What to return in a bounce reportWhat to enclose in a bounce report: the whole message or only its headers.