Hmm that is not a bad idea. This seems to have done the trick..

route add -net 72.34.32.0/255.255.224.0 gw 127.0.0.1

and in main.cf

smtp_fallback_relay = some.other.relay.com


Regards

- Kris Glynn: (07) 3295 3987 - 0434602997


-----Original Message-----
From: owner-postfix-us...@postfix.org [mailto:owner-postfix-us...@postfix.org] 
On Behalf Of Noel Jones
Sent: Thursday, 17 May 2012 10:11 AM
To: postfix-users@postfix.org
Subject: Re: Relay to alternate relayhost if recipients MX servers resolves to 
a cerrtain network range

On 5/16/2012 6:06 PM, Kris Glynn wrote:
> Hi,
>
> I'm trying to make postfix relay via an alternate relayhost if the
> recipients MX server resolves to an address in this range -
> 72.34.32.0/19
>
> How can I achieve this using postfix-2.9.2


Use a firewall redirect.  Postfix transport and destination features work on 
the domain name, not the IP address.

  -- Noel Jones
The content of this e-mail, including any attachments, is a confidential 
communication between Virgin Australia Airlines Pty Ltd (Virgin Australia) or 
its related entities (or the sender if this email is a private communication) 
and the intended addressee and is for the sole use of that intended addressee. 
If you are not the intended addressee, any use, interference with, disclosure 
or copying of this material is unauthorized and prohibited. If you have 
received this e-mail in error please contact the sender immediately and then 
delete the message and any attachment(s). There is no warranty that this email 
is error, virus or defect free. This email is also subject to copyright. No 
part of it should be reproduced, adapted or communicated without the written 
consent of the copyright owner. If this is a private communication it does not 
represent the views of Virgin Australia or its related entities. Please be 
aware that the contents of any emails sent to or from Virgin Australia or its 
related entities may be periodically monitored and reviewed. Virgin Australia 
and its related entities respect your privacy. Our privacy policy can be 
accessed from our website: www.virginaustralia.com

Reply via email to