Re: [Exim] Re: More ORBZ and Mail Woes

Top Page
Delete this message
Reply to this message
Author: Jim Savoy
Date:  
To: exim-users
Subject: Re: [Exim] Re: More ORBZ and Mail Woes
Thanks Philip,

                I saw that in the book, on page 539 (on the topic
of "expansion variables") there is a disclaimer regarding the
$domain variable. I don't quite understand it though. It reads:


   "... if all the addresses that are being handled simultaneously
    contain the same domain, it is placed in $domain. Otherwise
    this variable is empty during delivery."


I am not sure if that means it is risky for me to rewrite quoted
addresses using $domain (eg my goal is to change
"relay@??? into relay@???@uleth.ca
before attempting delivery. Can you give me an example of
when "all the addresses being handled simultaneously" do *not*
contain the same domain? ie if someone sent mail to
savoy@???,savoy@??? (another site we host)
would both be rewritten as savoy@????

- jim -

PS Pardon my ignorance - I am just learning how exim works
     (and really don't know much about how mail works either!).
     I am just trying to block orbz, while keeping our site safe
     from errant rewrites and filtering.



Philip Hazel wrote:

> On Thu, 1 Nov 2001, Jim Savoy wrote:
>
> > Is there
> > a way for me to turn this into a variable so that it retains
> > the original domain name? Something like:
> >
> >    new_address = ${quote:$local_part}@$domain  ???

>
> Er, yes. Try exactly what you have written!
>