intergrade /etc/mail/spamassassin/local.cf in to amavisd-new
Stanislas Leveau
stanislas.leveau at ac-caen.fr
Fri Mar 4 10:11:54 CET 2016
Because There other spamassassin rules reduce the final score.
> Le 4 mars 2016 à 05:16, Indunil Jayasooriya <indunil75 at gmail.com> a écrit :
>
>
>
>
>> I create my rules in a file file.cf in /etc/mail/spamassassin/ directory and i reload amavis and it s ok normaly
> I have CentOS 6 X running.
>
> My location is different.
>
> I need files in /var/lib/spamassassin/3.003001/updates_spamassassin_org directory.
>
> I created a file like this .
>
>
> /var/lib/spamassassin/3.003001/updates_spamassassin_org/custom.cf
>
> my /var/lib/spamassassin/3.003001/updates_spamassassin_org/custom.cf file contains this.
>
>
> #My custom rule
>
> #body LOCAL_MYTHING /\b(mything)\b/i
> #describe LOCAL_MYTHING Email contains the word mything.
> #score LOCAL_MYTHING 9.0
>
> body LOCAL_SEXTOYS /\b(sextoys)\b/i
> describe LOCAL_SEXTOYS Email contains the word sextoys.
> score LOCAL_SEXTOYS 9.0
>
>
>
> and added below line
>
> include updates_spamassassin_org/custom.cf
>
> in /var/lib/spamassassin/3.003001/updates_spamassassin_org.cf file.
>
>
>
> and restarted amavisd .
>
> Now, When I type exactly the word sextoys in body. this will be BLOCKED by amavisd.
>
> pls see the log.
>
> amavis[16752]: (16752-05) Blocked SPAM {DiscardedInbound,Quarantined}
>
> it gives hits Hits: 6.552 .
>
> I am pretty happy about it. Now the problem is it gets 6 PLUS score when my rule says 9.0
>
> i.e - score LOCAL_SEXTOYS 9.0
>
> Any idea on this.
>
>
>> Amavis add local_sex in message header?
>
> When Can I find this in amavisd?
>
>
> Hope to hear from you
>>
>>
>>
>>
>
>
>
> --
> cat /etc/motd
>
> Thank you
> Indunil Jayasooriya
> http://www.theravadanet.net/
> http://www.siyabas.lk/sinhala_how_to_install.html - Download Sinhala Fonts
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.amavis.org/pipermail/amavis-users/attachments/20160304/b86eb6b4/attachment.html>
More information about the amavis-users
mailing list