• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

SpamAssassin spam filtering problem

I went and ran mchk on one of my servers and the user_prefs file was recreated in the proper directory. My only concern at this point is having a user_prefs file in the .spamassassin directory going to cause any problems or will it just be ignored?????
 
I'm not sure... I have moved the user_prefs file to the right location on one of our servers and the spam filtering has reverted to the default hits score of 7.0 even though the score is set to 4.0 in Plesk.

I have some questions still open with SWsoft regarding this so I am looking forward to hearing from them.

Will update this when there is more information.

- Chris
 
The problem with SpamAssassin defaulting to 7.0 hits for every user is fixed by running:

Code:
/usr/local/psa/admin/sbin/mchk --spam-only

This also puts all 'user_prefs' files in the right location which is rather handy, so I will edit my step-by-step guide above to include this step.

In the past 5 hours SpamAssassin has caught 50 spams - which is about 50 more than it was catching yesterday! :p

And rommer, the 'user_prefs' file in the '.spamassassin' sub-directory is redundant now and can be deleted or left safely. I'd leave it because it's not exactly using up gigs of space!

- Chris
 
The above fixes have helped 1000% Spam is now being tagged or deleted as the customer sets up.

Two last points that I have found;

1) I ran a sightly different command to recreate the user_prefs

/usr/local/psa/admin/bin/mchk --with-spam

2) The Bayes stuff will ONLY take effect if you have trained or the system has autolearned at least 200 of each ham and spam. Until then the bayes test are NOT done. That is the Spamassassin default which they feel is conservative in order to reduce false positives. You can over ride this and in fact I have done it for several customers that are closely monitoring their email by the following.

In user_prefs add

bayes_min_ham_num 10
bayes_min_spam_num 100

(Use what ever number your comfortable with)

Keep in mind thou that the next time you run mchk the custom settings will be lost but by then they should have enough trained so that the deefaults are OK.

BTW - I also added the RulesDuJour stuff but I'm wondering if there is a test message I can send to see if the new rules are working?
 
Hi rommer,

The mchk command that you ran will do the same job, except it does all of the mail settings and not just SpamAssassin's.

Unless you were having other problems there is not much benefit in running it with the '--with-spam' option which will take quite a bit longer to run.

No harm done though! ;)

- Chris
 
Training SA

Hi There, wanted to ask a little about SA training.. when working with sa-learn from the command line it wants to only work with the system user home directory files and cannot deal with the virtual users that qmail uses..

What i did which seemed to work ok, although a lot of work which i haven't finished yet was to run sa-learn as root on a few archives of spam and ham.. then did a sync... and copied the bayes and auto-whitelist files to each qmail users home dir.. I am now getting bayes test results in the spam subject for all users.

Does anybody know if running a system wide bayes deal would be better than the default way this works? or should i not worry about it now that i'm seeded.

Thanks
 
I think it would be best to start this question in a new thread as the original problem has been resolved... and unfortunately i haven't used sa-learn manually so i'm not the man to answer your question ;)

- Chris
 
Back
Top