Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 10-24-2011, 05:28 PM   #1
Registered: Jun 2011
Posts: 32

Rep: Reputation: Disabled
Question what custom rules do you use with spamassasin??

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
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.


Last edited by yeayu; 10-24-2011 at 07:30 PM.
Old 10-25-2011, 05:15 PM   #2
Registered: Jun 2011
Posts: 32

Original Poster
Rep: Reputation: Disabled
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?


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/
sa_quarantine_site=3.1 (/var/qmail/bin/

Last edited by yeayu; 11-01-2011 at 07:04 AM. Reason: solved



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Custom udev rules not taking place? xaos5 Debian 3 03-22-2011 03:51 AM
Need custom Snort rules written abefroman LQ Job Marketplace [Archive] 1 05-26-2008 12:05 AM
Location for Custom udev Rules Toods Slackware 7 11-19-2007 01:42 PM
Mailscanner custom rules. David ward Linux - Software 1 11-17-2005 02:10 AM
Suse firewall and custom iptables rules guerilla fighta Linux - Software 1 01-05-2003 08:44 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:35 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration