intergrade /etc/mail/spamassassin/ in to amavisd-new

Indunil Jayasooriya indunil75 at
Fri Mar 4 05:16:55 CET 2016

> I create my rules in a file 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

I created a file like this .

my /var/lib/spamassassin/3.003001/updates_spamassassin_org/ 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.

and added below line

include updates_spamassassin_org/

in  /var/lib/spamassassin/3.003001/ file.

and restarted amavisd .

Now, When I type exactly the word sextoys in body. this will be BLOCKED by

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   -  Download Sinhala
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the amavis-users mailing list