[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: SA-Exim and acls



On Fri, Dec 12, 2008 at 12:26:10AM +1030, David Purton wrote:

> acl_check_rcpt:
>   warn hosts = :
>        set acl_m0 = do-not-scan
> 
> then in sa-exim.conf I have
> 
>   SAEximRunCond: ${if !eq {$acl_m0}{do-not-scan} {1}{0}}
> 
> But it's not working :( The message gets scanned anyway.
> 
> The acl is being set, since I can see this happening if I run exim in
> debug mode.
> 
> but SAEximRunCond is expanding to false (it expands to true if I use
> SAEximRunCond: ${if !eq {$acl_m0}{} {1}{0}})
> 
> Any ideas what I'm doing wrong?

Shouldn't that refer to the hosts exim is relaying mail for? The : in
"warn hosts = :" makes for an empty host list, so what you're trying
to do will not apply to any hosts.

And if your acl_check_rcpt is acl_smtp_rcpt, that doesn't seem the
right place to do it.

And what is sa-exim.conf and SAEximRunCond? It would help if you could
post the acls you have in your config.

I would probably set a condition in acl_smtp_data. Something like this
maybe:


warn    spam       = nobody
            !hosts = 192.168.0.0/255.255.255.0
        add_header = X-Spam_score: $spam_score\n\
                     X-Spam_score_int: $spam_score_int\n\
                     X-Spam_bar: $spam_bar\n\
                     X-Spam_report: $spam_report


In "!hosts = 192.168.0.0/255.255.255.0", set whatever addresses or
condition you have to identify the clients. I haven't tried it, but I
think it should work.


-- 
"Don't let them, daddy. Don't let the stars run down."
http://adin.dyndns.org/adin/TheLastQ.htm


Reply to: