Re: [Exim] Using macros within ACL files

Top Page
Delete this message
Reply to this message
Author: Matt Hubbard
Date:  
To: John Dalbec
CC: exim-users
Subject: Re: [Exim] Using macros within ACL files
John Dalbec wrote:
> > Would it be feasible and advisable to have MACRO expansion applied to
> > loaded ACL files? As this doesn't seem to happen in v4.30.
> >
> > For example:
> >
> > in file exim.conf:
> > ...
> > ETCDIR=/usr/local/exim/etc
> > acl_smtp_data=ETCDIR/acl-data
> > ...
> >
> > in file acl-data:
> > deny !acl = ETCDIR/acl-data-attachments
> > warn acl = ETCDIR/acl-data-spam
> >
> >
> > This currently fails with 'unknown ACL verb in
> > "ETCDIR/acl-data-attachments"'.
>
> What's in file ETCDIR/acl-data-attachments? I've run into this when I
> had a multi-line regex clause (condition=...) and forgot a \ at the end
> of one of the lines.


I forgot to mention it worked fine if I just replaced "ETCDIR" with
"/usr/local/exim/etc" in the file "acl-data".

Cheers,
Matt.