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 |
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 |
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 |
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?
|
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...
|
Give DSPAM or another pure statistical filter a try.
I got it trained in a week or so and get about 99.7% accuracy. |
All times are GMT -5. The time now is 08:49 AM. |