• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Training Spamassassin server-wide

D

Deltafox

Guest
The new feature in plesk to train spamassassin worked a while for me, trained a lot of messages but now i comes with an error when i want to train.

Error: Cannot exec 'spammng --train-spam --filename=C:/Program Files/SWsoft/Plesk//tmp/spm93F3.tmp --password=*** --mailname=***':
Invalid field name 'Processing your mail message caused the following errors:'. A field name MUST be composed of printable US-ASCII characters (i.e.,characters that have values between 33 and 126, inclusive),except colon.

So i decided to train spamassassin server-wide with ham and spam myself at the commandline.

1) Saved some ham and spam from my outlook at my hdd
2) Upload it to the server
3) Then train like this

cd\
cd program files\swsoft\plesk\additional\spamassassin\blib\script
sa-learn --ham --showdots C:\inetpub\vhosts\***\private\spamassassin\ham\

cd\
cd program files\swsoft\plesk\additional\spamassassin\blib\script
sa-learn --spam --showdots C:\inetpub\vhosts\***\private\spamassassin\spam\

It says:
Learned tokens from 100 message(s) (100 message(s) examined)

Looks good!

But now i wonder if i'm training spamassassin server-wide with this method?

Does this really work?

Anybody have some experience with this?
 
As I understand it, each email account has its own database. So email accounts must be trained individually.

I would like to find out how you can make all email accounts use the same database so that the system need only be trained once.
 
I forgot to mention, when I have trained via the command line I used the following ...

sa-learn --spam "c:/sa-learn/spam" --dbpath "C:/Program Files/SWsoft/Plesk/Additional/SpamAssassin/SpamFilterUserConfigsPath/[email protected]/"
 
It seems like spamassassin bayesian filter has kicked in, a lot of spam is tagged right now.

I think the way i learn spamassassin is really server-wide :)

Keep in mind that the default settings of spamassassin enable the bayesian rules after it has learned at least 200 spam en 200 ham messages. The manual says that you have to train 500 till 1000 messages for better results. Training more than 5000 messages is not effective anymore.
 
spamassassin is not detecting spam

Hi

I have spamassassin installed and I have it configure it like this:

3 tag, 2.5 Quarantine and 7 block

But it is not detecting spam, I'm still receiving spam on the email accounts...

What can I do??
 
Back
Top