foxcpp / maddy

✉️ Composable all-in-one mail server.

Home Page:https://maddy.email

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature request System command filter. run_on header

Chris-Scot opened this issue · comments

I would like to amend parts of the header to help with EMail rejection. The following description was taken from here: https://serverfault.com/questions/216731/removing-headers-from-postfix-sent-mail

Anti-spam systems hate finding anything related to EC2, so some kind of cloaking is regrettably necessary.
A postfix example header_checks snippit for your consideration.
/^(Received: .amazonaws.com.)/ REPLACE X-Cloak-$1

In the case of "run_on header", I would like to replace the header rather than the header from stdout being prepended to the message header. Using the System command filter in this way would provide a ubiquitous solution to any header problems.