[Exim] some exiscan-acl questions..

Page principale
Supprimer ce message
Répondre à ce message
Auteur: Brian
Date:  
À: exim-users
Sujet: [Exim] some exiscan-acl questions..
Hello all

exim 4.32 exiscan-acl-19

and I'm just wondering if what it looks like to me is really happening..
(using this document:
http://www.timj.co.uk/linux/Exim-SpamAndVirusScanning.pdf)

from what I can see in the spamd logs is that *each* time you call spam
= nobody it repipes the message to spamd *again*

so that if you did this:

1. warn message = X-Spam-Score:
$spam_score
spam = nobody:true

2. warn message = X-Spam-Report:
$spam_report
spam = nobody:true

3. warn message = Subject: **** SPAM **** $h_Subject
spam = nobody

4. deny message = This message scored $spam_score spam points.
spam = nobody:true
condition = ${if >{$spam_score_int}{120}{1}{0}}

So if I understand this right..

1. send it to spamd and get $spam_score and put it in the headers
2. send it to spamd and get $spam_report and put it in the headers
3. sent it to spamd and put **** SPAM **** in the $h_Subject for
possible later rewriting
4. deny the message if $spam_score is set, send it to spamd and if the
$spam_score is 12 reject the message..

is that right?

Wouldn't the same thing be accomplished w/ less calls to spamd like this:

1. warn message = X-Spam-Score: $spam_score
spam = nobody:true

2. warn message = X-Spam-Report: $spam_report

3. warn message = Subject: **** SPAM **** $h_Subject

4. deny message = This message scored $spam_score spam points.
condition if ${if >{$spam_score_int}{120}{1}{0}}


I do this:

warn message = X-New-Subject: [SPAM] $h_subject:
condition = ${if <{$message_size}{80k}{1}{0}}
spam = nobody
log_message = [SPAM] $spam_score

warn message = X-Spam-Score: $spam_score ($spam_bar)

and then in my system_filter I do this:
# Exim filter

if "${if def:header_X-New-Subject: {there}}" is there
then
         headers remove Subject
         headers add "Subject: $h_X-New-Subject:"
         headers remove X-New-Subject
endif


and from what I can tell in my logs is I now have one call to spamd per
message..

am I wrong?

- Brian