PDA

View Full Version : SpamAssassin Bayesian


joel_griego
30th April 2009, 16:51
Hi!

Can someone teach me how to use bayesian filtering for spamassassin?
Where for example i will put all spam email on a folder and then spamassassin will check that folder and then try to learn spam pattern? I dont know how to configure it on ubuntu. can you help me? thanks!

Joel

falko
1st May 2009, 17:49
http://wiki.jumba.com.au/wiki/How_to_Train_SpamAssassin

joel_griego
2nd May 2009, 05:34
Good Morning Sir,

Thank you very much for the information. I have some questions:

. Train SpamAssassin
SSH to your web server
Change your directory to the mail folder location containing the HAM & SPAM folders you created earlier. For example:
cd /home/<myusername>/mail/<mydomain>/<mymailbox>/

Run the following commands on the HAM & SPAM files contained in this directory:
sa-learn --siteconfigpath=/usr/share/spamassassin --showdots --mbox --spam SPAM
sa-learn --siteconfigpath=/usr/share/spamassassin --showdots --mbox --ham HAM


for example:
my spam messages are in /home/user/Maildir/.spam and
my ham messages are in /home/user/Maildir/.ham,

my question is, where should i execute
sa-learn --siteconfigpath=/usr/share/spamassassin --showdots --mbox --spam SPAM ?
to /?
or to /home/user/Maildir/?
Im a bit confused on how the command knows the path of the folder where the spams and hams reside. Thanks!

Joel

falko
3rd May 2009, 17:06
I'd use the full paths. I don't think the --mbox option wil work because you're using Maildir. Run
sa-learn --help
to find out what option you have to use for Maildir.

joel_griego
4th May 2009, 02:16
Thank you sir!

Joel