am 01.10.2009 14:00 schrieb Jonathan Gilpin:
> I looked through the vexim config but I'm still stuck because I can't  
> see how spam assassin is called and how the variable $spam_score and  
> $spam_score_int is set in exim...could someone help me out with this  
> one?

Spamassassin (SA) works as a daemon;
you have to tell exim on which IP:port SA listens ...

# (somewhere in main part of exim config):
# spamassassin daemon IP & port
#
spamd_address = 127.0.0.1 783

... the following exim-config snippet feeds SA with the message ...

>> --- in "acl_check_content":
>>
>> # Run spamassassin, mark with "X-Spam-Score:" and
>> # "X-Spam-Report:" headers
>> #
>> warn message = X-Spam-Score: $spam_score ($spam_bar)
>>  condition = ${if < {$message_size}{750k} }
>>  spam = 100:true
>> #
>> warn message = X-Spam-Report: $spam_report
>>  condition = ${if < {$message_size}{750k} }

... and voilá, "$spam_score", "$spam_bar" and "$spam_report" is filled
with the result of the SA run.

HTH,
Peter

-- 
## List details at http://lists.exim.org/mailman/listinfo/exim-users 
## Exim details at http://www.exim.org/
## Please use the Wiki with this list - http://wiki.exim.org/

Reply via email to