You have definitely improved my understanding of the exim acl's and I thank
you for the examples you provided. However, I don't believe it will help me
in this case.
A little more background on the issue so you understand what I am aiming at:
We have addresses that go back to a ticketing system. In order to cut down
on multiple identical tickets being opened because people are sending to
more than one ticket mail address, I have been asked that for the "address1"
ticket address, I eliminate all other email addresses other than "address1"
if it is present.
This means that I can not defer as they will just resend the same data later
and open the identical ticket anyways. When I say "removing additional
recipient addresses", I mean dropping them completely, discard style.
-----Original Message-----
From: Edgar Lovecraft [
mailto:exim-list@cox.net]
Sent: Friday, April 15, 2005 4:20 PM
To: 'exim-users@???'
Subject: Re: [exim] Exim acl issue - removing additional recpient
addresse s
Bjurstrom, Eric wrote:
>
..[snip]...
>
> It seems to work only if address1 is the first one passed to exim. Any
> recipients passed prior to address1 are accepted.
>
My apologies, I forgot part of the statement, here is what you want,
or at least something similar...
Use selective deferes during the RCPT acl.
###
### We can defer here if address1 shows up after someother address
###
defer condition = ${if and{\
{eqi{$local_part}{address1}}\
{eqi{$acl_m0}{not-address1}}\
}{1}{0}}
###
### We can accept address1 here if it shows up and we have not
### accepted any other address
###
accept condition = ${if and{\
{eqi{$local_part}{address1}}\
{!eqi{$acl_m0}{not-address1}}\
}{1}{0}}
set acl_m0 = address1
###
### We can defer here if some other address shows up after accepting
### address1
###
defer condition = ${if and{\
{!eqi{$local_part}{address1}}\
{eqi{$acl_m0}{address1}}\
}{1}{0}}
###
### We can accept here if some other address shows up and we have
### not yet seen address1
###
accept condition = ${if and{\
{!eqi{$local_part}{address1}}\
{!eqi{$acl_m0}{address1}}\
}{1}{0}}
set acl_m0 = not-address1
--
--EAL--
--
--
## List details at
http://www.exim.org/mailman/listinfo/exim-users
## Exim details at
http://www.exim.org/
## Please use the Wiki with this list -
http://www.exim.org/eximwiki/