I was trying something like this..

main.cf
smtpd_recipient_restrictions = permit_mynetworks reject_unauth_destination 
check_recipient_mx_access cidr:/etc/postfix/outbound_mx

outbound_mx
72.34.32.0/19   FILTER  smtp:some.other.relay.host.com

.. but I think it is not working as mail is being submitted via command line 
(echo test | mail -s "test" u...@host.with.mx.in.outbound_mx.file) rather than 
via SMTP - although even when I try delivery via SMTP and the recipients MX 
server resolves to something in the 72.34.32.0/19 range it still delivers it to 
that MX (i.e. 72.34.32.1) rather than some.other.relay.host.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