logging mail envelope

2020-10-02 Thread Matt Zagrabelny
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

rewriting incoming mail header

2020-10-02 Thread Matt Zagrabelny
Greetings Postfix Users, I have a need to rewrite part of the incoming mail header before local delivery. The "To:" header looks like: To: The default queue via RT and I need to remove the descriptive part of the email address so that it looks like: To: Sometimes the header will have arbitr

Re: where is the fqdn coming from

2018-11-26 Thread Matt Zagrabelny
On Wed, Nov 21, 2018 at 5:42 PM Viktor Dukhovni wrote: > > On Nov 21, 2018, at 6:25 PM, Scott Kitterman > wrote: > > > >>> Where is the ".localdomain" coming from? > >> > >> It might be read from a file, or it might be set at compile time? The > >> person packaging Postfix for Debian should know

where is the fqdn coming from

2018-11-21 Thread Matt Zagrabelny
Greetings, I'm using Postfix 3.3.1-1+b1 (Debian testing). I'm testing out the default for myhostname and am a little confused as to where it is getting its value. I purposefully did not set it in main.cf: # grep '^ *myhostname' /etc/postfix/main.cf || echo nope nope Here is what postfix believe