In my mail relay, I have a few relay_domains set up, and for a few of those, I need to bcc all of their mail to separate addresses (a unique address per domain). I found the bcc options, but is there a way to bcc all mail that is destined only for certain relay_domains?
Just to give some concrete settings: relay_domains = rd1.com rd2.com rd3.com relay_recipient_maps = transport_maps = hash:/etc/postfix/transport transport: rd1.com smtp:foo.rd1.com rd2.com smtp:foo.rd2.com For this example, mail to rd1.com should be bcc'd to ad...@foo.com, rd2.com's should be bcc'd to ad...@foo.com, and rd3.com's shouldn't be bcc'd at all. Thanks! - Drew