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.
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>
Already in pipeline
https://github.com/opnsense/plugins/pull/1893
Thanks!
Awesome.