cjackson <cjackson@???> wrote:
> cjackson writes:
>
>> Hi,
>>
>
> This is an update to my original post and a continued request for
> assistance. As it turns out, spamd is working fine. The problem
> appears to be with Exiscan. Exiscan is working because it scans with
> Clamav. And it scans with spamd. A spam score is reported in the log
> and the acl succeeds for spam email. The problem is that no header is
> added for spam email. See acl below:
>
> warn message = X-Spam-Score: $spam_score
> spam = mail
> logwrite = :main: Spam Score: $spam_score
>
> warn message = X-Spam-Report: $spam_report
> spam = mail
>
> Seems simple to me but message isn't working. Any ideas
> extraordinarily welcomed as this niggling problem is holding up the
> entire project.
1. You don't have a headers_remove directive somewhere in a router or
transport which is removing the header, do you?
2. Try exim -d -bh, this will show you the headers being added by the ACL, a
bit like this (my lines will wrap):
>>Headers added by DATA ACL:
X-Spam-Score: 11.9 (+++++++++++)
X-Spam-Report:
autolearn=no,DATE_MISSING=0.985,DRUGS_ERECTILE=1,FROM_NO_LOWER=1.897,RM_hm_E
mtyMsgid=0.316,SARE_FROM_NONE=3,SARE_MSGID_EMPTY=1.106,SARE_TOCC_NONE=0.802,
SUBJ_VIAGRA=2.816
X-Spam-Flag: YES
The ACLs which trigger this look like this (the condition is a MySQL query
which controls SA per recipient domain):
warn message = X-Spam-Score: $spam_score ($spam_bar)
condition = LOOKUP_SPAM_SCAN_FLAG
log_message = Spam score: $spam_score
spam = nobody:true
warn message = X-Spam-Report: $spam_report
condition = LOOKUP_SPAM_SCAN_FLAG
spam = nobody:true
warn message = X-Spam-Flag: YES
condition = LOOKUP_SPAM_SCAN_FLAG
spam = nobody
might help...
Peter
Peter