Re: [exim] temporary variables in transports

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Tony Finch
Date:  
À: Felix Schwarz
CC: exim-users
Sujet: Re: [exim] temporary variables in transports
On Thu, 3 Mar 2005, Felix Schwarz wrote:
>
> I have some virtual users. Additionally I have a "site"-concept, that
> means if domain1.example and domain2.example are belonging to the same
> site then domain2.example is an alias for domain1.example.
> Therefore foo@??? may be written as foo@??? as
> they point to the same mailbox.
> Furthermore I have some aliases such as info@??? that
> should point to sales@???.
>
> I can configure each of these two features alone but not both at the
> same time. One important thing is that I don't want to rewrite the
> envelope headers I need the results of these two lookups as an
> argument for calling an external program (DSPAM).


Use two separate routers: one to do the domain mapping and one
to do the user mapping. For example, see the domain_longshort and the
domain_aliases routers from the Cambridge config:

http://www.cus.cam.ac.uk/~fanf2/hermes/doc/talks/2005-02-eximconf/paper.pdf

I'm not sure what you mean by not rewriting the envelope headers. The
message envelope and message header are separate things. The example I've
given does not change the message header. If you're talking about not
changing the message's recipient addresses, what's the point of doing the
mapping if it will have no effect?

Tony.
--
<fanf@???> <dot@???> http://dotat.at/ ${sg{\N${sg{\
N\}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}\
\N}{([^N]*)(.)(.)(.*)}{\$1\$3\$2\$1\$3\n\$2\$3\$4\$3\n\$3\$2\$4}}