Dear Scott,
> Thank you for the great information. I am really
> interested in using the Bayes filter. I've read every
> conf file as well as the MAN file. I'm not sure
> exactly how to setup the use of Bayes. I would really
> like to enable bayes like you described below. I want
> to train it using a known junk-mail account that
> receives adult content all of the time, before I put
> the server online. That way, it catches most of it
> before hand.
>
> I know how to setup the items for Cron, but how do I
> config openprotect to use it properly?
OpenProtect installs SpamAssassin with MCP support and SpamAssassin
in turn provides the sa-learn program. So, a step-by-step procedure
would be like this:
1)create a new mail user spam
2)create a new mail user notspam
3)instruct all your users to forward spam mails which are not detected
properly to the [EMAIL PROTECTED]
4)similarly, instruct all your users to forward non-spam mails which are
detected wrongly as spam to the [EMAIL PROTECTED]
5)Schedule a periodic scan using cron, to run the following commands:
sa-learn --no-rebuild --spam /var/mail/spam
sa-learn --no-rebuild --ham /var/mail/notspam
for mbox setup.
For Maildir setup,
for i in /path-to-spam-account's/Maildir/cur; do sa-learn --no-rebuild
--spam $i; done
for i in /path-to-notspam-account's/Maildir/cur; do sa-learn
--no-rebuild --ham $i; done
6)whitelist your users and the whole domain in
/etc/MailScanner/rules/spam.whitelist.rules:
From: yourdomain.com1 yes
From: yourdomain.com2 yes
7)periodically rebuild the Bayes Database in a /etc/cron.daily script,
which contains:
sa-learn --rebuild
8)restart OpenProtect
/etc/init.d/openprotect restart.
cheers,
Karthikeyan, S.
--
S.Karthikeyan | Mobile: +91 (0) 9444080290
Opencomputing Technologies | http://opencompt.com
Server Side E-Mail Protection.