Skip to content

Windows Plesk SpamAssassin problem

PROBLEM:

When trying to mark a message as SPAM within Plesk tracking tools, this error occurs:

Error: Cannot exec ‘spammng –train-spam –filename=C:/Program Files (x86)/Parallels/Plesk/tmp/spmA94D.tmp –password=**** –mailname=****’:
Learned tokens from 0 message(with) (1 message(with) examined)
—–
Use of uninitialized value in concatenation (.) or string at C:/Program Files (x86)/Parallels/Plesk/Additional/Perl/lib/File/Spec/Win32.pm line 275.
useful: refusing to untaint suspicious path: “C:\Program Files (x86)\ParallelsPleskAdditionalSpamAssassinSpamFilterUserConfigsPath****bayes”
useful: refusing to untaint suspicious path: “C:\Program Files (x86)\ParallelsPleskAdditionalSpamAssassinSpamFilterUserConfigsPath****bayes_journal”
bayes: expire_old_tokens: Insecure dependency in sysopen while running with -T switch at C:\PROGRA~2PARALL~1PleskADDITI~1Perlsitelib/Mail/SpamAssassin/Locker/Win32.pm line 71.
plugin: eval failed: bayes: (in learn) Insecure dependency in sysopen while running with -T switch at C:\PROGRA~2PARALL~1PleskADDITI~1Perlsitelib/Mail/SpamAssassin/Locker/Win32.pm line 71.
ERROR: the Bayes learn function Returned an error, please re-run with -D for more information at C:\PROGRA~2PARALL~1PleskADDITI~1Perlbinsa-learn line 490.
Unable to train spamassasin: Learned tokens from 0 message(with) (1 message(with) examined)
—–
Use of uninitialized value in concatenation (.) or string at C:/Program Files (x86)/Parallels/Plesk/Additional/Perl/lib/File/Spec/Win32.pm line 275.
useful: refusing to untaint suspicious path: “C:\Program Files (x86)\ParallelsPleskAdditionalSpamAssassinSpamFilterUserConfigsPath****bayes”
useful: refusing to untaint suspicious path: “C:\Program Files (x86)\ParallelsPleskAdditionalSpamAssassinSpamFilterUserConfigsPath****bayes_journal”
bayes: expire_old_tokens: Insecure dependency in sysopen while running with -T switch at C:\PROGRA~2PARALL~1PleskADDITI~1Perlsitelib/Mail/SpamAssassin/Locker/Win32.pm line 71.
plugin: eval failed: bayes: (in learn) Insecure dependency in sysopen while running with -T switch at C:\PROGRA~2PARALL~1PleskADDITI~1Perlsitelib/Mail/SpamAssassin/Locker/Win32.pm line 71.
ERROR: the Bayes learn function Returned an error, please re-run with -D for more information at C:\PROGRA~2PARALL~1PleskADDITI~1Perlbinsa-learn line 490.

SOLUTION:

Ve a las propiedades de C:\Program Files (x86)\ParallelsPleskAdditionalPerlsitelibMailSpamAssassinUtil.pm and uncheck the read-only. Then edit the file and change the following line:

my $chars = ‘-_A-Za-zxA0-xFF0-9.%@= ,/\:’;

By:

my $chars = ‘-_A-Za-zxA0-xFF0-9.%@= ,/\:\(\)’;

Leave the links to sources for more information

http://www.sergiosainz.com/2011/03/20/error-en-el-training-de-spamassassin/

http://forum.parallels.com/pda/index.php/t-101205.html