On 2 Oct 2020, at 21:19, Matt Zagrabelny wrote:
How do I log envelope fields for received mail?
Postfix logs the envelope sender and recipients by default. For example,
your message generated these 2 lines in my log:
Oct 2 21:19:27 bigsky postfix/qmgr[45059]: 4C38Cc621Yz4rbKG:
from=, size
Greetings!
I'm able to log the mail headers with:
/etc/postfix/header_checks
/to:/ WARN
etc.
and
/etc/postfix/main.cf
header_checks = pcre:/etc/postfix/header_checks
How do I log envelope fields for received mail?
Thanks for any pointers!
-m