Re: [exim] ACL always runs spam check

Góra strony
Delete this message
Reply to this message
Autor: J.R.Haynes
Data:  
Dla: Mark Hills
CC: exim-users
Temat: Re: [exim] ACL always runs spam check
On Tue, 10 Jan 2017 at 00:23 -0000, Mark Hills wrote

> The log shows the "certified connection" rule is matched, yet the spam
> check is still launched. Whereas I'd expect the "spam =" line to never be
> acted upon.


I don't think the spam lines from the *ACL* are being run. Your ACL looks
OK to me.

>
>
> 2017-01-09 23:45:10 1cQjck-0001fD-2F accepting message content from certified connection


This log line comes from the ACL

> 2017-01-09 23:45:10 1cQjck-0001fD-2F SA: Debug: SAEximRunCond expand returned: '1'


This log line refers to SAExim. From memory (which is always risky!)
SAExim was a version of Exim with a patch which (I think) hooks into
Exim's local_scan function to run SpamAssassin. It was written before exim
incorporated the 'spam' ACL condition and is no longer maintained.

So actually Exim's inbuilt spam checks are running according to the spam
ACL condition *and* SAExim is *also* running accoring to its own rules.
Therefore you may have been spam scanning some email twice.

What do you get if you run the command exim -bV ? Does it mention SAExim?

Running in debug mode will show what parts of the ACL are being run and
should also show SAExim being invoked (provided the patch supported
debug).


Anything beyond here is speculation as I have never used SAExim but..

The log line suggests there is a configuration line SAEximRunCond which
decides whether SAExim runs SpamAssassin. Maybe if you change that line to
something like SAEximRunCond = false it will never be run and you will
only be running SA via the builtin Exim function?

The better solution would be to look at your build process, find out where
it is including SAExim, exclude this and just use Exim's built in call to
SA, which is what you thought you were doing anyway.


--
------------------------------------------------------------------------------

                              J. R. Haynes
                         Senior Network Specialist


      IT Department,                  e-mail: J.Haynes@???
      Bld 63,
      Cranfield University,           Tel: Bedford (01234) 754205
      Wharley End,                         Bedford (01234) 750111 Extn 4205
      Cranfield,                      Fax: Bedford (01234) 751814
      Beds.,
      MK43 0AL.