SpamAssassin training doesn't work in Plesk for Windows with the following errors in
PleskUtilException: "C:Program Files (x86)Plesk/admin/bin/spammng" -train-messages-ham "[email protected]" "-filename=C:/Program Files (x86)/Plesk/PrivateTemp/sat10f1e19e.tmp" failed with message: Unable to train spamassasin: Learned tokens from 0 message(s) (1 message(s) examined)
ERROR: the Bayes learn function returned an error, please re-run with -D for more information at C:Program Files (x86)PleskAdditionalSpamAssassinbinsa-learn line 509.
Windows Event Viewer might contain the following error message:
Access denied for user 'sa_bayes'@'localhost' (using password: YES).
#PPPM-12579 "SpamAssassin no longer fails to learn if the autogenerated password for the sa_bayes database contains the hash character (#)."
- Plesk Obsidian 26 January 2021 (Windows)
Please consider updating your server:
If update is not possible for some reason you may try the following
Connect to the server via RDP.
%plesk_dir%AdditionalSpamAssassinetcmailspamassassinv321.prefile for editing.
bayes_sql_passwordwith a backslash