Re: [exim] temporary variables in transports

Kezdőlap
Üzenet törlése
Válasz az üzenetre
Szerző: Tony Finch
Dátum:  
Címzett: Felix Schwarz
CC: exim-users
Tárgy: Re: [exim] temporary variables in transports
On Thu, 3 Mar 2005, Felix Schwarz wrote:
>
> As I wrote at the end of my mail this is only a gateway system. In
> order to avoid any errors due to the alias/site mapping being out of
> sync with the main mailbox store I want to keep the original message
> envelope when resending it to the internal mail store which has the
> authoritative user list.


I see. If your mapping from virtual to real is simple enough then you can
use nested lookups. Exim should cache the domain mapping lookup to make it
reasonably efficient.

MAP_DOMAIN = ${lookup {$domain} lsearch {TABLES/domain_map} \
            {$value} {$domain} }


MAP_USER = ${lookup {$local_part@MAP_DOMAIN} \
             lsearch {TABLES/aliases/MAP_DOMAIN} \
                      {$value} {$local_part@MAP_DOMAIN} }


If not you could perhaps use an unseen router so that the incoming
recipient address is used for routeing to the message store while the
canonical address is used to get the spam settings.

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}}