> 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 <http://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