![]() ![]() A lot of people prefer cron jobs for this. You can run these commands manually whenever you'd like, especially if you like control, however it can become a chore and demanding process. nham - Number of (non-spam) messages examined.nspam - Number of spam messages examined.Run: sa-learn -dump magic # sa-learn -dump magicĠ.000 0 3 0 non-token data: bayes db versionĠ.000 0 1404770116 0 non-token data: oldest atimeĠ.000 0 1411483933 0 non-token data: newest atimeĠ.000 0 0 0 non-token data: last journal sync atimeĠ.000 0 1410340539 0 non-token data: last expiry atimeĠ.000 0 5529600 0 non-token data: last expire atime deltaĠ.000 0 137169 0 non-token data: last expire reduction count.You'll see similar results for this, all depending on how many messages on are in the folder.sa-learn -p /home/USER/.spamassassin/user_prefs -spam /home/USER/mail/DOMAIN.TLD/ACCOUNT/.Junk/.From the command line run sa-learn on your email account's "Junk" folder.When attempting to run these commands as the 'root' user, use the following syntax to run them as the user: sudo -H -u bash -c '/usr/local/bin/sa-learn ' ![]() Official sa-learn documentation can be found here: sa-learn doc Getting startedĮxecuting sa-learn commands must be performed by the 'mail account owner' to function properly. Users of spamd who wish to perform training remotely, over a network, should investigate the spamc -L switch. SpamAssassin will automatically "forget" the previous indications. If you make a mistake and scan a mail as ham when it is spam, or vice versa, simply rerun this command with the correct classification, and the mistake will be corrected. Messages learned as spam will have SpamAssassin markup removed, on the fly. SpamAssassin remembers which mail messages it has learned already, and will not re-learn those messages again, unless you use the -forget* option. See Mail::SpamAssassin::ArchiveIterator for more details. Note that csh-style globbing in the mail folder names is supported in other words, listing a folder name as will scan every folder that matches. ![]() Simply run this command once for each of your mail folders, and it will learn from the mail therein. Given a typical selection of your incoming mail classified as spam or ham (non-spam), this tool will feed each mail to SpamAssassin, allowing it to "learn" what signs are likely to mean spam, and which are likely to mean ham. This is a guide to effectively use SpamAssassin's "sa-learn" to help train tokens for spam flagging accuracy. ![]()
0 Comments
Leave a Reply. |