Skip to main content

How to properly use sa-learn?

Comments

6 comments

  • cPanelMichael
    Hello, You may find the following third-party blog post helpful:
    0
  • Infopro
    As commented on that link, the spam will keep coming, but good luck anyway. Google the email address that's getting all the spam, do you find it? If yes, so do email scrapers. Over and over and over again. And, they'll send new spam to it using new email addresses fully passable by spam filtering emails. Users need to learn to better obfuscate their email addresses on their own webpages, use secure contact forms, and should never ever post it anywhere if they can help it. But they don't. If you want to end the spam on that email account quick and easy? Kill the email account when it gets that bad. Or, see if the results found on searching for the email via google, can be scrubbed from the websites you found it on. Not the answer you were looking for, I'm sure. :rolleyes:
    0
  • joako
    When I read that documentation, it says to put in the config file: bayes_path /var/spamassassin/bayes_db/bayes But when I run sa-learn it creates /root/.spamassassin and in there is bayes_journal, bayes_seen, bayes_toks, and sa-compile.cache/. There is no bayes_db directory or any file called bayes. In /etc/mail/spamassassin/local.cf I already put: use_bayes 1 bayes_auto_learn 1 And I see for the users that have spamassassin enabled there is a ~/.spamassassin exactly like root's but still in the headers of received messages there is no indication that bayes is being used.
    0
  • joako
    How can I edit the scores assigned to particular spamassassin rules on a global basis, and ensure these changes survive any spam rules updates? For e.g. this rule I would like for it to be assigned more points: 1.7 RAZOR2_CHECK Listed in Razor2 (
    0
  • kdean
    Edit /etc/mail/spamassassin/local.cf Add: score RAZOR2_CHECK #.# # - your score numbers Then restart spamd /scripts/restartsrv_spamd or restart Exim from WHM or with the following which will also restart spamd. /scripts/restartsrv_exim
    0
  • kdean
    After activating Bayes, you need to wait until after a few hundred SPAM and HAM emails are received before it actually starts scoring the emails. So you should see the bayes files being created for the accounts, but may need to wait some time before seeing the effect.
    0

Please sign in to leave a comment.