Re: [Exim] SMTP rewriting (again)

Top Page
Delete this message
Reply to this message
Author: Philip Hazel
Date:  
To: John Horne
CC: Exim usersEximUsersList
Subject: Re: [Exim] SMTP rewriting (again)
On Tue, 2 Mar 2004, John Horne wrote:

> It seems that with SMTP-time rewriting the variable $sender_address is
> not set. This is understandable in one respect if the S rewrite rule is
> for non-standard (or invalid) addresses.


SMTP rewriting happens *before anything else* precisely so that it can
deal with bad syntax, etc.

> However, is there a way to get
> the original address regardless of what it is? I see that
> $smtp_command_argument is not mentioned as being valid for the MAIL
> command so I can't use that.


You can match it in the regex! Put the whole regex inside () and voila!
you will find the original thing in $1.

--
Philip Hazel            University of Cambridge Computing Service,
ph10@???      Cambridge, England. Phone: +44 1223 334714.
Get the Exim 4 book:    http://www.uit.co.uk/exim-book