![]() Do this every few weeks until you don’t have to anymore. The following command will train spam-assassin with spam contents (-spam). Official sa-learn documentation can be found here: sa-learn doc Getting started This will only work for email accounts using IMAP. Users of spamd who wish to perform training remotely, over a network, should investigate the spamc -L switch. This is much better than using the built-in Evo stuff. Follow these steps to filter mail with spam-assassin: Install spam-assassin. SpamAssassins will automatically ‘forget’ the previous indications. 1 Answer Sorted by: 4 Thunderbird stores its mail folders as mbox files (see the Thunderbird FAQ ). You can use sa-learn –spam –progress –mbox to learn it as a spam, and change –spam to –ham for ham. evolution/mail/local and find your mbox for your mail. (Note: if you try to merely “copy” the mail messages to another folder, they will simply not move - again, Junk is a “tag” in evo, not a location). The way to get around it is to create a mail filter in Evo which says: “if mail is marked as junk, then mark it as not junk AND move it it to folder named JUNK.” Then you apply the filter to your Junk directory and Evo will copy them out. Automatically train SpamAssassin with spam/ham from Cyrus IMAPd user mailboxes - GitHub - michaelroland/sa-learn-cyrus: Automatically train SpamAssassin. This is cool, but sucks if you want to run sa-learn on your mbox in order to train spamassassin. “Mark as Junk” is really not moving mail anywhere, but just “tagging” it, and then the Junk folder is like a vfolder which searches for all mail tagged as junk. Messages learnt as spam will have SpamAssassin markup removed, on the fly. If you have already tagged mails as Junk using Evo’s “Mark as Junk” feature, you need to hack these mails out of that folder and move them into a regular Evolution folder. SpamAssassin remembers which mail messages it has learnt already, and will not re-learn those messages again, unless you use the -forgetoption.Instead, create a JUNK and HAM directory in Evolution, and move your junk mails and ham mails there.Do not use bayesian autolearning in spam assassin, as this is a broken way to update your spam filters. ![]() ![]() If you are attempting this setup, I recommend the following hacks: I am trying to use Evolution with SpamAssassin, and finding horrible slowness and bugs in the bayes_* databases to be the norm. Considering how common this problem is and how ingenious OSS guys usually are, I’m a bit surprised. I’ve found the anti-spam support on Linux to be pretty poor overall. ![]()
0 Comments
Leave a Reply. |