On Tue, Dec 16, 2014 at 12:28:26AM +0100, li...@rhsoft.net wrote: > > Am 15.12.2014 um 22:59 schrieb Viktor Dukhovni: > >On Mon, Dec 15, 2014 at 12:39:56PM +0100, li...@rhsoft.net wrote: > > > >>is there some way to invoke regexp:/etc/postfix/header_checks_smtpd.cf to > >>local stored messages for strip out unwanted headers? > > > >Have you considered postmap(1) > > > > http://www.postfix.org/postmap.1.html > > > >The "-h" option is I think what you're looking for > > sounds promising - thank you for the hint!
You'll need to modify the code to process the "IGNORE" action, rather than print it, and to print unmatched headers. -- Viktor.