On Tue, Nov 16, 2010 at 05:26:29PM -0500, Zhou, Yan wrote:
> This is I wish to accomplish with one single instance of Postfix that
> has two different IPs. Having traffic coming to one IP be processed
> differently than the other, and use LDAP to validate domain &
> recipients.
What does "differently" mean?
> This is master.cf: (I do not know how to define separate transports)
>
> <IP 1>:smtp inet n - n - - smtpd
> -o transport=dovecot:
> <IP 2>:smtp inet n - n - - smtpd
> -o transport=connector:
>
> The closest one I can get to is to set up master.cf like the following,
> but that does not go through LDAP for domain & recipient validation.
Content filters and routing have nothing to do with recipient validation.
Recipient validation is based on mechanisms described in:
http://www.postfix.org/ADDRESS_CLASS_README.html
with additional information in:
http://www.postfix.org/VIRTUAL_README.html
http://www.postfix.org/ADDRESS_REWRITING_README.html
> am getting all messages without Postfix rejecting invalid addresses. I
> was told that this is what content filter does.
You were given bad information.
> So my question is, can I
> define my own transport, so that messages are routed differently AFTER
> Postfix validates address and domains? If so, how can I set it up in
> master.cf?
The question is based on a false premise. What problem are you really
trying to solve. I thought you originally wanted a particular recipient
domain to favour relayhost over content_filter, that is not possible,
don't set a content_filter if it does not apply to ALL mail.
--
Viktor.