Re: [exim] Exim Consolidating users

Page principale
Supprimer ce message
Répondre à ce message
Auteur: David Woodhouse
Date:  
À: Jonathan Gilpin
CC: exim-users@exim.org
Sujet: Re: [exim] Exim Consolidating users
On Thu, 2010-02-25 at 11:05 +0000, Jonathan Gilpin wrote:
> > On Thu, 2010-02-25 at 10:30 +0000, Jonathan Gilpin wrote:
> >>> Perhaps instead of redirecting to 'postmaster' you could redirect to an
> >>> address such as 'catchall-$original_local_part', and then ensure that
> >>> such recipients are all delivered into the same mailbox by the routers?
> >>
> >> any idea how to write this in exim language? Basically the theory sounds good!
> >
> > Mostly it'd be in MySQL, surely?
> >
> > Change your MYSQL_Q_ALIASES query not to change the localpart to
> > postmaster@ for unknown localparts, and then change the MYSQL_Q_BOXNAME
> > query so that it _does_ do that transformation.
> >
> > Then the built-in duplicate elimination shouldn't trigger (because the
> > addresses are still different), but the router should actually end up
> > dumping all copies of the message into the same mailbox.
>
> I've fine with the SQL query... but I'm not sure how to rewrite the transport. What would the
> query need to return for example if the address is to be kept the same?


I wouldn't change the transport at all.

Currently, you have MYSQL_Q_ALIASES turning the incoming email address
qq@??? into postmaster@???, and then later you have
MYSQL_Q_BOXNAME turning that postmaster@??? into a Maildir
directory name.

If you stop MYSQL_Q_ALIASES from turning the address into postmaster@,
then you just want your MYSQL_Q_BOXNAME query to resolve 'qq@???'
into the correct Maildir directory for the postmaster/catchall mailbox.

Why change the transport?

--
dwmw2