Re: [exim] HowTo integrate Spamassassin working?

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Heiko Schlittermann
日付:  
To: exim-users
題目: 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 ------------ -