Re: [exim] Why $domain variable expands to sender domain?

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Jeremy Harris
Ημερομηνία:  
Προς: exim-users
Αντικείμενο: Re: [exim] Why $domain variable expands to sender domain?
On 16/08/2020 01:43, Kevin Shell via Exim-users wrote:
> begin rewrite
> *@+local_domains  "${if inlist {$domain}{LOCAL_DOMAINS} \
>         {$local_part@$domain}\
>       {${lookup{${local_part@${domain}}}lsearch{CONFDIR/email-addresses}{$value}fail}}}" Ffrs


> Why $domain expands to sender domain?


It is doing what the docs say:

(address rewriting chapter, section 6)

"Within the expansion, the variables $local_part and $domain refer to
the address that is being rewritten"
--
Cheers,
Jeremy