Re: [Exim] Check DATA ACL not working

Pàgina inicial
Delete this message
Reply to this message
Autor: Elliot Finley
Data:  
A: Tor Slettnes
CC: exim-users
Assumpte: Re: [Exim] Check DATA ACL not working
----- Original Message -----
From: "Tor Slettnes" <tor@???>
>
> On Apr 12, 2004, at 13:37, Elliot Finley wrote:
>
> >   deny  condition = ${if match{$header_subject:}{\Nindows-1251\N}
> > {yes}{no}}
> >         log_message = SPAMFILTER: Junk in subject
> >         message = Go away spammer

> >
> > But it's not working. Can anyone see anything wrong with the ACLs?
>
> Starting with the obvious:
>   - Did you point to this ACL using the 'acl_smtp_data' option in the
>     main section?  (For instance, if your ACL block is named
>     "acl_check_data", did you use "acl_smtp_data = acl_check_data"?)

>
>   - Are there any other triggering "accept" or "reject" statements
>     above this one that preempt its execution? (For instance,
>     "accept hosts = : @")


I have:

acl_smtp_rcpt = check_recipient
acl_smtp_data = check_message
av_scanner    = clamd:/var/run/clamav/clamd


right at the top of my configure file. Then further down I have:

check_message:
  accept log_message = ACCEPT: message larger than 5M
        condition = ${if >{$message_size}{5000000}{1}{0}}


  deny  condition = ${if match{$header_subject:}{\Nindows-1251\N} {yes}{no}}
        log_message = SPAMFILTER: Junk in subject
        message = Go away spammer


  deny  condition = ${if match{$header_subject:}{\N=\N} {yes}{no}}
        condition = ${if match{$header_subject:}{\N\?\N} {yes}{no}}
        condition = ${if match{$header_subject:}{\Nindows\N} {yes}{no}}
        log_message = SPAMFILTER: Junk in subject
        message = Go away spammer


and a bunch of other stuff dealing with file extenions, malware, etc...
below this.

Elliot