![]() ![]() the Windows system user account (which is the default when using SpamAssassin in a Box for example). This is especially important if you run SpamD for spam filtering under a separate user account, e.g. The main difference on a Windows system is that sa-learn will run under the current user credentials while spamc will pass the mails that shall be trained to spamd (the SpamAssassin Daemon) which then trains the mail under the user credentials of spamd. The SpamAssassin Bayes filter can be trained either by using the sa-learn.exe or the spamc.exe. Training and Internship at JAM Software.SmartPOP2Exchange versus Exchange Server Toolbox.Increasing the maximum size of the error message allowed to be sent to the sender.Use an SSL Smarthost with AUTH on qmail.Disabling Reverse DNS Lookups in qmail-smtpd.Clearing or Timestamping the readproctile service errors buffer.How to find out which domains use the most disk space.How to copy vpopmail accounts from one server to another.Turning off or changing ClamAV virus notifications.How to release a message from quarantine.Converting Multi-Domain SSL Certs to qmail for multiple servers.Adding Ham and Spam buttons to Squirrelmail.Troubleshooting the 451 qq Temporary Problem.Upgrading and Maintaing Ports and Sources.I am not sure why it takes so long for it to come into the header part of the emails. Restart spamd and within a day or so you will see autolearn appear in your headers. ![]() and the next line just forces a chmod of 770 on the bayes database for security reasons. ![]() The next line after that enables autolearning. The first line tells the bayes path to tell bayes where to store the bayes database. In this case, the qscand home folder is /tmp # The line below needs to point to the users bayes_path that spamassassin runs as. Once you have done that, add or modify the following lines to your local.cf You basically need 200 hams and 200 spams before you can enable bayes autolearning. If you run sa-learn -dump magic, your nspam total will have 30 more new messages learned as spam. This tells you that out of 30 messages in the new folder, 30 were learned. Learned from 30 message(s) (30 message(s) examined). You'll get an output similar to the following in wither either case. # sa-learn -ham ~vpopmail/domains/domain.ext/user/Maildir/new To learn hams in ~vpopmail/domains/domain.ext/user/Maildir/new, run # sa-learn -spam ~vpopmail/domains/domain.ext/user/Maildir/.Spam/new Replace domain.ext with your domain andreplace user with the actual user on your system : Lets just say that you have aįolder in ~vpopmail/domains/domain.ext/test/Maildir/spam. The easiest way isīy running the command right from console. There are a few ways to feed sa-learn spams and hams. Here is how to train SpamAssassin hams and spams. The nham total is the total amount of hams Bayes has learned. The nspam total is the total amount of spams Bayes has learned. The spam and ham totals must be at least 200 each. Run the following command:Īnd then you should get something like this:Īs you can see from the above example, I have 5752 spams and 1702 hams The more you train bayes, the better the learning algorithm.įirst to make sure bayes can be turned on, bayes needs to be trained for 200 hams and 200 spams. There are a few things you need to train spamassassin to do before bayes can start learning how to tell the difference between spam and non-spam. ![]()
0 Comments
Leave a Reply. |