LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 09-21-2004, 11:09 AM   #1
bigdogg
Member
 
Registered: Oct 2003
Distribution: Fedora Core 1
Posts: 80

Rep: Reputation: 15
SpamAssassin Question?


Here is what my .procmailrc file looks like in each user directory:

:0fw: spamassassin.lock
* < 256000
| spamassassin

# Mail spam to the spam e-mail account

:0:
* ^X-Spam-Status: Yes
! spamemail@domain.com

# Work around procmail bug: any output on stderr will cause the "F" in "From"
# to be dropped. This will re-add it.
:0
* ^^rom[ ]
{
LOG="*** Dropped F off From_ header! Fixing up. "

:0 fhw
| sed -e '1s/^/F/'
}

~~~~~~~~~~~~~~~~~~
And the squirrelmail local.cf file

# How many hits before a message is considered spam.
required_hits 5.0

# Whether to change the subject of suspected spam
rewrite_subject 1

# Text to prepend to subject if rewrite_subject is used
subject_tag ****SPAM****

# Encapsulate spam in an attachment
report_safe 1

# Use terse version of the spam report
use_terse_report 0

# Enable the Bayes system
use_bayes 1

# Enable Bayes auto-learning
auto_learn 1

# Enable or disable network checks
skip_rbl_checks 0
use_razor2 1
use_dcc 1
use_pyzor 1
# Mail using languages used in these country codes will not be marked
# as being possibly spam in a foreign language.
# - english
ok_languages en

# Mail using locales used in these country codes will not be marked
# as being possibly spam in a foreign language.
ok_locales en


#Black Listing#

blacklist_from abmtiu@yahoo.com
blacklist_from *@netcom.com
blacklist_from *@porschezone.com
blacklist_from muuext@yahoo.com
blacklist_from *@atonement9529pirrs.com
blacklist_from *@industrialac.com
blacklist_from *@isp.knotwork.com
blacklist_from *@cyberis.fr
blacklist_from *@wizard.net
blacklist_from *@directresponseback.com
blacklist_from *@irol.net
blacklist_from *@howlermonkey.net
blacklist_from *@pop.com.br


# End SpamAssassin Configuration File

~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I'm going to create a cron job to do the following:

sa-learn --mbox --spam /var/mail/spamemail
(This is the inbox where the spam mail is being sent too)

sa-learn --mbox --ham /var/mail/useraccounts
(Of course this is my inbox)

So this should teach spamassassin what spam & ham is? I still have about 70% of the spam making it through. I just wanted to see if this is the proper way to teach the spam software. Or am I making it worse? I should think more spam would be getting caught by now. I probably sent about 900 spam e-mails through along with about 600 ham e-mails?

Thanks in Advance,

BiG
 
Old 09-21-2004, 12:21 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 53
i would only teach on folders with lots and lots of good and bad email in them
let it build up big time
and not do it so often

also just change required_hits 5.0

i set mine to 1 and it almost never flags out a good email
 
Old 09-21-2004, 12:40 PM   #3
bigdogg
Member
 
Registered: Oct 2003
Distribution: Fedora Core 1
Posts: 80

Original Poster
Rep: Reputation: 15
I was thinking about changing the number down I will set it to 2 for now and see if that makes a change and I will do a learn once a month? And hopefully this will help my spam issue. Thanks for the quick response!!!


BiG
 
Old 09-21-2004, 03:37 PM   #4
bigdogg
Member
 
Registered: Oct 2003
Distribution: Fedora Core 1
Posts: 80

Original Poster
Rep: Reputation: 15
I set it to 2 and dammit three spam e-mails came into my inbox? Hopefully spamassassin will become smart enough to grab over 90% of my spam. Does it take a long time for spamassassin to become very effective?
 
Old 09-22-2004, 07:31 AM   #5
bigdogg
Member
 
Registered: Oct 2003
Distribution: Fedora Core 1
Posts: 80

Original Poster
Rep: Reputation: 15
Well I dropped it to 1 in hopes it would catch more spam It's now catching about 70% I guess as I train it for spam and ham it will get that much smarter...
 
Old 09-22-2004, 08:24 AM   #6
inimino
Member
 
Registered: Sep 2004
Location: Colorado, US
Distribution: Gentoo, Debian
Posts: 32

Rep: Reputation: 15
Give DSPAM or another pure statistical filter a try.

I got it trained in a week or so and get about 99.7% accuracy.
 
  


Reply



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
spamassassin question mvp Linux - General 3 05-30-2006 06:38 PM
Procmail and spamassassin question Liberator Linux - Software 5 08-13-2004 03:24 PM
MailScanner and Spamassassin Question? gsmonk Linux - Software 4 01-06-2004 01:03 AM
Spamassassin Question chrisk5527 Linux - Software 0 04-03-2003 01:30 PM
SpamAssassin Question gsmonk Linux - Networking 1 02-15-2003 11:38 PM

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

All times are GMT -5. The time now is 04:26 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