> -----Original Message-----
> From: owner-postfix-us...@postfix.org [mailto:owner-postfix-
> us...@postfix.org] On Behalf Of Victor Duchovni
> Sent: Tuesday, November 16, 2010 1:52 PM
> To: postfix-users@postfix.org
> Subject: Re: how to support relay host with per-IP routing
> 
> On Tue, Nov 16, 2010 at 01:41:47PM -0500, Zhou, Yan wrote:
> 
> > My theory is that message will be validated against LDAP first, if
> the
> > address is not found in LDAP, it would gets relayed using relayhost,
> is
> > that correct?
> 
> Not if you specify a conent_filter, which is the case below. The
> content_filter pre-empts normal routing, and all mail is sent to
> the filter first.
> 


Is there a way for me to do what I wanted (direct traffic by different
IP) without using content filter?


> > This is master.cf
> >
> > <IP 1>:smtp      inet  n       -       n       -       -       smtpd
> >   -o content_filter=dovecot:
> > <IP 2>:smtp      inet  n       -       n       -       -       smtpd
> >   -o content_filter=connector:
> >
> > connector     unix  -       n       n       -       -       pipe
> >    flags= user=hubdirect argv=python /usr/local/bin/connector.py
> > dovecot   unix  -       n       n       -       -       pipe
> >    flags=Rhu user=hubdirect argv=/usr/libexec/dovecot/deliver -f
> > ${sender} -d ${recipient}
> >
> >
> > This is main.cf:
> >
> > relay_domains=medplus.com                                      (any
> > relayhost=<our company SMTP server host name here...>
> 
> This will not pre-empt the content_filter setting.
> 
> --
>       Viktor.





Confidentiality Notice: The information contained in this electronic 
transmission is confidential and may be legally privileged. It is intended only 
for the addressee(s) named above. If you are not an intended recipient, be 
aware that any disclosure, copying, distribution or use of the information 
contained in this transmission is prohibited and may be unlawful. If you have 
received this transmission in error, please notify us by telephone (513) 
229-5500 or by email (postmas...@medplus.com). After replying, please erase it 
from your computer system.

Reply via email to