OPNsense Forum

Archive => 20.1 Legacy Series => Topic started by: nzkiwi68 on June 25, 2020, 12:51:22 AM

Title: Postifx feature request: Add header checks to the GUI
Post by: nzkiwi68 on June 25, 2020, 12:51:22 AM
I've got the need to do headers checks and re-write header items. Its really very similar to the Sender Canonical Rewriting.

Can we please add the ability to modify header checks?

Thanks.
Title: Re: Postifx feature request: Add header checks to the GUI
Post by: nzkiwi68 on June 25, 2020, 12:53:38 AM
Example:

To change Message-ID:
/Message-Id:\s+<(.*?)@server.example.com>/ REPLACE Message-Id: <$1@example.com>


To rewrite FROM: in all headers
/^From:\s+MAILER-DAEMON@server.example.com/ REPLACE From: "Mailer-Daemon at server.example.com" <MAILER-DAEMON@server.example.com>
Title: Re: Postifx feature request: Add header checks to the GUI
Post by: mimugmail on June 25, 2020, 10:57:26 AM
Already in pipeline

https://github.com/opnsense/plugins/pull/1893
Title: Re: Postifx feature request: Add header checks to the GUI
Post by: nzkiwi68 on June 26, 2020, 01:17:10 AM
Thanks!

Awesome.