LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 10-24-2011, 04:28 PM   #1
yeayu
Member
 
Registered: Jun 2011
Posts: 32

Rep: Reputation: Disabled
Question 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

Last edited by yeayu; 10-24-2011 at 06:30 PM.
 
Old 10-25-2011, 04:15 PM   #2
yeayu
Member
 
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?

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

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


Reply

Tags
spamassassin



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 02:51 AM
Need custom Snort rules written abefroman LQ Job Marketplace [Archive] 1 05-25-2008 11:05 PM
Location for Custom udev Rules Toods Slackware 7 11-19-2007 12:42 PM
Mailscanner custom rules. David ward Linux - Software 1 11-17-2005 01:10 AM
Suse firewall and custom iptables rules guerilla fighta Linux - Software 1 01-05-2003 07:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

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