Re: [Exim] modifying subject of emails depending on result f…

Top Page
Delete this message
Reply to this message
Author: Jez Hancock
Date:  
To: exim-users
Subject: Re: [Exim] modifying subject of emails depending on result from spamc ?
On Fri, Dec 19, 2003 at 12:50:54PM +1100, Andrew Nelson wrote:
> Hi,
>
> Spam assassin has a utility called spamc that can be
> run like this: spamc -c < spammessage
>
> and returns a ranking in the form: float/float (ie 3.1/5.0)
>
> How can I get exim to parse mail to this command and
> if the rating is >= 10, to prepend some text to the subject
> line like: "SPAM ALERT! - "

Using exiscan I do this (using spamd though, not spamc):

    # reject spam at high scores (> 8)
    deny   message = Message scored $spam_score > 8
        spam = nobody:true
        condition = ${if >{$spam_score_int}{80}{1}{0}}


where $spam_score_int is your float*10.

Any particular reason why you're incurring the overhead of spam checking
with spamc instead of spamd?

See the exiscan site for more info:
http://duncanthrax.net/exiscan-acl/


--
Jez Hancock
- System Administrator / PHP Developer

http://munk.nu/
http://jez.hancock-family.com/  - personal weblog
http://ipfwstats.sf.net/        - ipfw peruser traffic logging