On 11/20/2009 7:35 AM, Osmany Goderich Navarro wrote:
So I'm thinking about using sender_bcc_maps and header_checks to filter out some copies generated by bcc. How can I configure header_checks to work with two conditions?
header_checks operate on one header at a time, so not suitable for this.
I want to filter messages that come from an address meant to go to one specific recipient. I want to do this using header_checks. how can I do this?
Forget header_checks; not the right tool. Postfix 2.7 has a BCC access map action you can call from a smtpd_restriction_classes table. That would work.
There may be a milter that can do what you want, but you'll need to look around for one.
Your other alternative is to use sender_bcc to copy everything, then use procmail or similar delivery-time tool to throw away what you don't want during final delivery.
-- Noel Jones