Noel Jones:
> On 1/28/2010 1:46 AM, Jonathan Cutting wrote:
> > Hello fellow Postfix users,
> >
> > I am attempting to configure a postfix server for multiple domains,
> > which will use a milter to send an email to a mailarchiving store
> > (mailarchiva). What I would like to do is:
> >
> > Match the originating domain in outbound mail using a hash table or sql
> > lookup and use a specific milter depending on domain
> >
> > Match the to: address in incoming mail to similarly choose a milter
> > based on domain
>
> Not possible. Postfix must connect to the milter before it
> knows the recipient.
I can confirm this. Milters expect to see the complete SMTP session.
Switching milters in the middle of a session wasn't really anticipated
in the Milter architecture. In fact, the Sendmail Milter library
will return an error if SMTP protocol elements arrive out of order.
Wietse