Re: [exim] lists in ACL condition

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Andreas Metzler
Date:  
À: exim-users
Sujet: Re: [exim] lists in ACL condition
On 2004-08-31 "Michael F. Sprague" <mfs@???> wrote:
[...]
> domains     = +eps_spf


> to check to see if the recipient domain is on that list in the rcpt ACL.


> I store the recipient domain in $acl_m0 so I could do the following
> in a mime or data ACL to see if the recipient domain is in a db file
> (which seeded the domain list earlier):


> condition = ${lookup {$acl_m0} dbm{EPSEXT}{yes}{no}}


> where EPSEXT is a macro. I'd rather have 'condition' look at the
> domain list just in case I have need to have several db files
> instead of just one.

[...]

Are you looking for this?
condition = ${if match_domain{$acl_m0}{+eps_spf}{yes}{no}}

match_domain is availble since about 4.32, iirc.
             cu andreas
-- 
"See, I told you they'd listen to Reason," [SPOILER] Svfurlr fnlf,
fuhggvat qbja gur juveyvat tha.
Neal Stephenson in "Snow Crash"