• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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