LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   what custom rules do you use with spamassasin?? (https://www.linuxquestions.org/questions/linux-software-2/what-custom-rules-do-you-use-with-spamassasin-909901/)

yeayu 10-24-2011 04:28 PM

what custom rules do you use with spamassasin??
 
Hello,
I'm trying to improve my mail server, so I would like to know what custom spamassassin rules use to fight against "VIAGRA","pills", and whatever kind of spam.
In my case, spanassassin is working fine but i have a lot of spam into my bulk folder, therefore i would like stopping that.
Could i do it creating a custom rule like below and delete those fu**.. mails?

header VIAGRA_SUBJECT Subject =~ /viagra/i
header VIAGRA_FROM From =~ /viagra/i
meta VIAGRA_HEADER VIAGRA_FROM && VIAGRA_SUBJECT
score VIAGRA_HEADER 10.0
describe VIAGRA_HEADER Block Mails with Viagra in subject

body VIAGRA_BODY /viagra/i
score VIAGRA_BODY 10.0
describe VIAGRA_BODY Block Mails with Viagra in body


For example, if I use Outlook every spam is into the bulk folder, however if I use Mozilla or webmail web page (horde) i have all those emails into my inbox folder.
I wish delete them, but i don't know how.

Thankx

yeayu 10-25-2011 04:15 PM

I wasn't talking about to create new rules, because spamassassin has rules already. I was talking about to create a rule to DELETE some kind of spam. For example, every mail with VIAGRA subject will deleted instantly. Someone have had to do it?

Regards

In the end, I was confusing about that.
You can control spam actions using qmail-scanner and spamassassin, for example setting:
required-score=6.5 (/etc/mail/spamassassin/local.cf)
sa_quarantine_site=3.1 (/var/qmail/bin/qmail-scanner-queue.pl)
sa_delete_site=5.2


All times are GMT -5. The time now is 10:04 PM.