LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-22-2008, 03:28 AM   #1
arjuns8471
LQ Newbie
 
Registered: Feb 2008
Posts: 17

Rep: Reputation: 0
Unhappy Filtering SPAM


Hi,

I am using RHEL v5.0 on our Linux Mailserver, with Spamassassin, MailScanner, Clamav & Postfix as the MTA.

The High Scoring Spams are not getting filtered to the defined EmailID (Spam@mydomain.com), instead it is getting delivered to the respective users.

I have set the following rule in the Mailscanner.conf file
Spam Actions = store forward spam@mydomain.com header "X-Spam-Status: Yes" AND

High Scoring Spam Actions = store forward spam@mydomain.com header "X-Spam-Status: Yes"

But the spam mails are not getting forwarded to the spam ID.

Any suggestions.

Thanks,
Arjun
 
Old 02-22-2008, 04:31 AM   #2
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,896

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
I don't know anything about Mailscanner, so I went to freshmeat and found this:
Quote:
About:
MailScanner is an email virus scanner, vulnerability protector, and spam tagger. It supports the Postfix, Sendmail, Exim, Qmail, and ZMailer MTAs, and the Sophos, McAfee, F-Prot, F-Secure, CommandAV, InoculateIT, Inoculan, eTrust, Kaspersky, Nod32, AntiVir, BitDefender, RAV, Panda, DrWeb, ClamAV, and other anti-virus scanners. It uses SpamAssassin for highly successful spam identification, and is designed to handle denial of service attacks. It will detect password-protected zip files and apply filename checking to their contents. It is very easy to install, requires no changes at all to your sendmail.cf file, is designed to be lightweight, and won't grind your mail system to a halt with its load. It can be integrated into any email system, regardless of
That is enough to tell me that it won't sort or forward mail. That is not it's job. Sorting and forwarding is the job of the MTA (mail transfer agent).

For that, I use procmail. All mail tagged as spam goes into a spam folder. All other mail goes into folders named for the sender, or to the inbox if no rule has been set up. In a network, it would forward mail to the recipient.

If have this in my ~/.procmailrc to send spam to a spam folder:
Code:
# scores > 5 - send to spam folder
 :0:
  * ^X-Spam-Status: Yes
  $HOME/Mail/SPAM
I repeat, I don't know much about Mailscanner. But, the description I found at freshmeat doesn't say anything about sorting and forwarding mail; just scanning and tagging. Perhaps there is something in the Mailscanner documentation that says it's supposed to also sort and forward, but I haven't seen it.

Last edited by bigrigdriver; 02-22-2008 at 04:34 AM.
 
Old 02-22-2008, 05:34 AM   #3
arjuns8471
LQ Newbie
 
Registered: Feb 2008
Posts: 17

Original Poster
Rep: Reputation: 0
Thanks for the quick response..!
But MailScanner does this filtering of Spam...check the below link...
http://www.mailscanner.info/MailScanner.conf.index.html
 
Old 02-22-2008, 01:59 PM   #4
bigrigdriver
LQ Addict
 
Registered: Jul 2002
Location: East Centra Illinois, USA
Distribution: Debian stable
Posts: 5,896

Rep: Reputation: 352Reputation: 352Reputation: 352Reputation: 352
Your config:
Quote:
High Scoring Spam Actions = store forward spam@mydomain.com header "X-Spam-Status: Yes"
Mailscanner documentation in re Spam Actions:
Quote:
forward user@domain.com - forward a copy of the message to user@domain.com
That's why the spam still gets delivered.

Stated more clearly, user@domain.com gets a copy of the spam, not the original. The addressee stile gets the spam. It may be a side-effect of using the forward parametet that overides the store parameter.

Try using store or store-spam without the forward parameter to see what happens (assuming you have the spam quarantine set up).

Relevant documentation: http://www.mailscanner.info/MailScan...ndex.html#Spam Actions

Last edited by bigrigdriver; 02-22-2008 at 02:05 PM.
 
Old 02-26-2008, 01:06 AM   #5
arjuns8471
LQ Newbie
 
Registered: Feb 2008
Posts: 17

Original Poster
Rep: Reputation: 0
Filtering Spam

Hi,

I have tried
Spam Actions = store spam@mydomain.com header "X-Spam-Status: Yes"

+

High Scoring Spam Actions = store spam@mydomain header "X-Spam-Status: Yes"

in the MailScanner.conf file...but still doesn't work. The high scoring spam are still getting delivered to the users...any other solutions?

Thanks..
 
  


Reply


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
SPAM Filtering nolinuxnollife Linux - Software 1 03-01-2006 09:50 AM
Spam Filtering - need help coolamit78 Linux - Software 6 03-22-2005 01:57 PM
SPAM Filtering Boffy Linux - Software 2 02-07-2005 02:51 PM
Spam Filtering WeNdeL Linux - General 3 06-17-2003 12:13 PM
Sendmail Spam filtering and Virus filtering MrJoshua Linux - General 2 04-03-2003 11:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:28 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration