Re: [Exim] "Steal" (was "Redirect") mail delivery

Startseite
Nachricht löschen
Nachricht beantworten
Autor: Florian Weimer
Datum:  
To: Leonardo Boselli
CC: exim-users
Betreff: Re: [Exim] "Steal" (was "Redirect") mail delivery
"Leonardo Boselli" <leo@???> writes:

> Too fastly on 10 Sep 99, at 22:51, I wrote:
> > (back from vacations) On 28 Aug 99, at 13:45, Florian Weimer wrote:
> > > Do you have an example configuration which does this (or something
> > > related)?
> > in localuser: director add In
> > local_users = username
> >then a
> > theothers: driver = smartuser
> > transport = theothers
> >
> > of couse in transport section must be a:
> >
> > theothers: driver = smtp
> > hosts = secondmachineinmxlist.your.doma.in
>
> OF COURSE THIS IS VALID ONLY IF THERE IS A SINGL:E
> USER TO BE STOLEN _AND_ there are NO OTHER user on the
> intermediate machine, otherwise the configuration is more
> complex, althought easily feasible by one more expert than me ...


I must admit that the use of a localuser director irritated me quite
a bit, but the idea to invoke a remote transport from a director was
very helpful.

I guess two smartuser directors will do the job:

######################################################################
# Non-local users which are in fact local

catch_fake_locals:
  driver = smartuser
  domains = FAKE_LOCAL_DOMAINS
  new_address = "${lookup {$local_part@$domain} \
        lsearch {FLD_REDIRECT_FILE} \
        {$value} fail}"


fake_locals:
driver = smartuser
domains = FAKE_LOCAL_DOMAINS
transport = remote_smtp_smarthost


Of course, FAKE_LOCAL_DOMAINS must be contained in local_domains. The
remote_smtp_smarthost transport justs sends the mail to the smarthost
via SMTP.