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.
> 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.