RE: [exim] Exim acl issue - removing additional recpient add…

Inizio della pagina
Delete this message
Reply to this message
Autore: Bjurstrom, Eric
Data:  
To: 'exim-users@exim.org'
Oggetto: RE: [exim] Exim acl issue - removing additional recpient addresse s
this is close to my earlier attempts, using the fallowing in the RCPT ACL:

accept condition  = ${if eqi{$local_part}{address1}{1}{0}}
         set acl_m0 = address1
discard condition   = ${if eqi{$acl_m0}{address1}{1}{0}}



It seems to work only if address1 is the first one passed to exim. Any
recipients passed prior to address1 are accepted.


In my research I found that in the DATA ACL, one can read the contents of
$recipients. Is there a way to check it there after all the rcpt commands
have been passed already and then reset the $recipients variable to only
"address1"? Not to mention, if such a thing were possible, would it achieve
the desired affect?


-----Original Message-----
From: Edgar Lovecraft [mailto:exim-list@cox.net]
Sent: Friday, April 15, 2005 2:30 PM
To: 'exim-users@???'
Subject: Re: [exim] Exim acl issue - removing additional recpient
addresses


Bjurstrom, Eric wrote:
>
> > I am trying to set up a pair of exim relays to drop additional
> > addresses from the recipient list if a particular address is present.
> > For example, address1@??? is the address I want to go through
> > by itself. If an email is set to address1@???,
> > address2@??? and address3@???, then address2 and
> > address3 are silently dropped and address1 is relayed normally. If
> > address1 isn't present, then business as usual and address2 and
> > address3 will be delivered normally and not dropped.
> >
> > I tried doing this with a variety of different acl's and have had no
> > success. Anybody out there do something similar or possibly know
> > how to accomplish this?


Use selective deferes during the RCPT acl.

accept condition  = ${if eqi{address1}{address1}{1}{0}}
     set acl_m0 = address1
###
### We can defer here any other user as we already accepted address1
###
defer condition   = ${if eqi{$acl_m0}{address1}{1}{0}}


--

--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/