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