Re: [exim] HowTo integrate Spamassassin working?

Top Page
Delete this message
Reply to this message
Author: Heiko Schlittermann
Date:  
To: exim-users
Subject: Re: [exim] HowTo integrate Spamassassin working?
Hi,

Forum <forum@???> (Do 22 Dez 2016 10:13:40 CET):
> Hello experts,

Not sure, if you meant me, but I'll try to answer anyway.

> _____________________________________________________________
>
> spamd_address = /run/spamd.sock
>
> begin acl
>
> acl_check_data:
>
>   deny  message = This message is classified as UBE (SPAM) and therefore rejected. You scored $spam_score points.
> Congratulations!
>        condition = ${if >{$spam_score_int}{${eval:200}}{true}{false}}

                                             ~~~~~~~~~~~ why eval here?

>
>        warn  spam = nobody:true
>        condition = ${if >{$spam_score_int}{50}{1}{0}}
>        remove_header = "Subject"
>        add_header = Subject: ***SPAM (Score:$spam_score)*** $h_Subject:

>
> _____________________________________________________________
>


If you remove the "" from the Subject, it will succeed. Don't ask why,
I'm not an expert :) (Probably because the value of remove_header isn't
a string (for string values it's allowed to use ""), but a string list.
Not sure, if this makes a difference.)

> Here you can see the complete result from an actual spam mail.
> My Thunderbird only shows the original subject without the "***SPAM" remark.


OTOH I wouldn't change/replace existing headers. You may break thinks,
e.g. DKIM.

    Best regards from Dresden/Germany
    Viele Grüße aus Dresden
    Heiko Schlittermann
-- 
 SCHLITTERMANN.de ---------------------------- internet & unix support -
 Heiko Schlittermann, Dipl.-Ing. (TU) - {fon,fax}: +49.351.802998{1,3} -
 gnupg encrypted messages are welcome --------------- key ID: F69376CE -
 ! key id 7CBF764A and 972EAC9F are revoked since 2015-01 ------------ -