foxcpp / maddy

✉️ Composable all-in-one mail server.
https://maddy.email
GNU General Public License v3.0
4.81k stars 238 forks source link

Feature request System command filter. run_on header #677

Open Chris-Scot opened 5 months ago

Chris-Scot commented 5 months ago

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 headerchecks 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.