I am routing all mail for a domain to another SMTP server using the transport map rule

adomain.com    relay:other.server

But I would like to exclude mailing lists, and have them processed locally,
using header_checks entries like this:

/^X-Mailing-List:/    FILTER local:

Here, "local" is the transport name, and the destination is empty as suggested in the comments of the header_checks file. But that doesn't work, no filtering takes place,
the mail ends up being relaid.

/^X-Mailing-List:/    REDIRECT some@address

does work, but I would prefer not to change the address.

Obviously there is a misunderstanding on my part regarding the FILTER syntax
Can I use a FILTER action to do what I want? I'm using Postfix 2.7.5

Thanks,
Pim

Reply via email to