Re: [exim] rewrite sender based on recipient

Top Page
Delete this message
Reply to this message
Author: Matthew Newton
Date:  
To: a.smith
CC: exim-users
Subject: Re: [exim] rewrite sender based on recipient
On Wed, Mar 05, 2014 at 03:30:47PM +0000, a.smith@??? wrote:
> Quoting Matthew Newton <mcn4@???>:
> >
> >Try $local_part@$domain instead of $recipients. The ACL only
> >checks one recipient at a time (which is why you probably also
> >need to check that $recipients_count is 1, or similar).
> >
> >See http://exim.org/exim-html-current/doc/html/spec_html/ch-string_expansions.html#SECTexpvar
> >for the list of available variables - not all are available at the
> >same time.
> >
>
> Thanks Matthew, I've had a look at this doc and it seems acl_a
> variables are suited to the task as opposed to acl_m, so I've
> changed that.


Unless something has changed recently in exim that I'm not aware
of, $acl_m is the right thing here.

> I've also tried putting $local_part@$domain as the search string but
> its still not matching. BTW For the sake of the testing I am
> manually sending a mail to a single recipient so this is controlled.
> Is there anything I can do to get it to verbosely show the ACL
> processing or see what is in the variable $recipients at a given
> time?


exim -d -bt recipient@???

would usually be the right place to start here. Try playing with
the debug options (see exim documentation) and also the -be option
(test expansions).

Matthew


--
Matthew Newton, Ph.D. <mcn4@???>

Systems Specialist, Infrastructure Services,
I.T. Services, University of Leicester, Leicester LE1 7RH, United Kingdom

For IT help contact helpdesk extn. 2253, <ithelp@???>