Alberto Scarpa wrote:
Hi,
I'm using postfix 2.5.6 + dovecot + amavis with virtual domains.
The system work fine and users can send and read emails (tnx for the great
documentation).
Now I need to do:
1) prepend "[INFO]" to the subject of all incomming email that have
header "To" equal to "i...@domain.tld"
2) add "Bcc: i...@domain.tld" to all outcomming email that have "[INFO]" in
the subject and not "i...@domain.tld" in "To", "CC" or "Bcc" headers
More in general I want to know, if it is possible, how I can write some
filters to change the email header and body.
Thank you for the help.
Alberto
Not possible to do this with built-in postfix controls. There
may be a milter with these features, I don't know.
Otherwise, you'll need a custom content_filter or proxy to do
these transformations.
For more info look under the "Content Inspection" heading on
the doc page.
http://www.postfix.org/documentation.html
-- Noel Jones