• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.

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@domain.com/"
 
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