Re: [exim] Trouble with $recipients

Top Page
Delete this message
Reply to this message
Author: bug123
Date:  
To: exim-users
Subject: Re: [exim] Trouble with $recipients

Hi list,

I want to set up a system that modifies my from address according to the
message recipients. I have my own domain and give out unique addresses to
all my contacts. This allows me to easily track and weed out spam and
viruses. It is similar to the 'Temporary email address' technique.

I am trying to set this up using exim 4.50 on debian using a rewrite rule.
The main thing lacking at these point is a way of accessing the recipient
list inside the rewrite. A lot of googling found me the following message:

Magnus Holmgren-3 wrote:
> * You can set an ACL variable to $recipients in the DATA ACL.


Well I tried that, but after several hours of battling with exim, my rewrite
rule still considers acl_c1 to be empty.

I have the following acl:


acl_check_data:
warn set acl_c1 = $recipients
warn log_message = $acl_c1 check_data
accept


Which according to the logs works fine:

2007-09-05 17:26:42 1ISvq6-0002Nf-0R U=root Warning: paaunl@???,
somethingelse@??? check_data


But in my rewrite rule $acl_c1 always resolves to an empty string, no matter
what I try.

Any suggestions ?

Thanks,

Daniel
--
View this message in context: http://www.nabble.com/Trouble-with-%24recipients-tf4226703.html#a12499351
Sent from the Exim Users mailing list archive at Nabble.com.