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"
>   
To reference more than one header, you need a content_filter, a milter
or use an after-queue filter (including deliver+Sieve for Dovecot).
Postfix *only* works on one header at a time.
There are some examples in the FILTER_README to make simple ones, or use
some widely published versions.

>  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
>   
You are using Dovecot, so why not use Sieve?
This allows to redirect and copy.
See http://wiki.dovecot.org/LDA/Sieve and the Dovecot mailing lists for
more detail.

Brian

Reply via email to