Autor: Kai Henningsen Datum: To: exim-users Betreff: Re: [Exim] Re-write Question
Nigel.Metheringham@??? (Nigel Metheringham) wrote on 04.08.99 in <E11C1w8-0001k1-00@???>:
> aluicious@??? said:
> > I have a REAL address of the form:
> > user@???
> > and I want to accept mail to:
> > any_address@???
> > .. so I have the following re-write rule:
> > ^.*@(.*).mydomain.com $1@??? SE
>
> This shows an unfortunately mindset probably caused by too much
> exposure to sendmail. Rewriting is for changing the *appearence* of
> addresses. Directors are for changing delivery to (local) addresses.
>
> You can do this with a smartuser director, but I don't have the example
> to do it to hand. If you set a transport directly off the smartuser
> then the deliveries do not get deduped (but in either case all
> recipients for that actual message are detailed in the envelope-to
> header.
Something along these lines, I'd guess (UNTESTED):
First, add *.mydomain.com to local_domains so it gets sent to the
directors.
I've done a setup that includes stuff like that, but it includes a lot of
other stuff too, so is much too complex as an example - most of the stuff
goes via dbm lookups (that are generated from some central scripts that
generate lots of other stuff too, like /etc/passwd entries for multiple
machines or web page directories). Zillions of ways to deliver, via POP3
mail files, via UUCP, via SMTP over MX, via SMTP without MX, to a single
account on another host, forwarded over another host reachable with one of
these methods, even to a specific autoreply transport sending back a
bounce that says this address is not currently active (ex-user without
forwarding address)