[somewhat OT] multiple relayhosts-style behaviour in postfix 2.0.x?

Dhawal Doshy dhawal at netmagicsolutions.com
Wed Apr 4 17:52:07 IST 2007


Drew Marshall wrote:
> On Wed, April 4, 2007 16:42, Daniel Maher wrote:
>> Hello all,
>>
>>
>>
>> I am curious if anybody knows of a way to have Postfix 2.0.x to exhibit
>> the behaviour of multiple relayhost entries?
> 
> Have you considered using always_bcc?
> 
> All you would need to do is set always_bcc = test at domain
> 
> Then in your aliases file:
> 
> test  test at box.1 test at box.2 etc
> 
> then put a transport entry in your transport maps file like:
> 
> box.1  smtp:ip.add.ress.1
> box.2  smtp:ip.add.ress.2
> 
> Then all mail coming in will automatically be sent to the test boxes as
> well as delivered as normal. If you set up all the boxes together you
> should be able to run some direct comparisons between them all.

Precisely.. just to add a link to excellent advice
http://www.postfix.org/ADDRESS_REWRITING_README.html#auto_bcc

Note: sender/recipient_bacc_maps are a postfix 2.1+ feature, in your 
case you can only use always_bcc


More information about the MailScanner mailing list