Saltar al contenido

Problema SpamAssassin Plesk Windows

PROBLEMA:

Al intentar marcar un mensaje como SPAM dentro de las herramientas de seguimiento de Plesk, se produce este error:

Error: Cannot exec ‘spammng –train-spam –filename=C:/Program Files (x86)/Parallels/Plesk/tmp/spmA94D.tmp –password=**** –mailname=****’:
Learned tokens from 0 message(s) (1 message(s) 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.
util: refusing to untaint suspicious path: “C:\Program Files (x86)\Parallels\Plesk\Additional\SpamAssassin\SpamFilterUserConfigsPath\****\bayes”
util: refusing to untaint suspicious path: “C:\Program Files (x86)\Parallels\Plesk\Additional\SpamAssassin\SpamFilterUserConfigsPath\****\bayes_journal”
bayes: expire_old_tokens: Insecure dependency in sysopen while running with -T switch at C:\PROGRA~2\PARALL~1\Plesk\ADDITI~1\Perl\site\lib/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~2\PARALL~1\Plesk\ADDITI~1\Perl\site\lib/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~2\PARALL~1\Plesk\ADDITI~1\Perl\bin\sa-learn line 490.
Unable to train spamassasin: Learned tokens from 0 message(s) (1 message(s) 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.
util: refusing to untaint suspicious path: “C:\Program Files (x86)\Parallels\Plesk\Additional\SpamAssassin\SpamFilterUserConfigsPath\****\bayes”
util: refusing to untaint suspicious path: “C:\Program Files (x86)\Parallels\Plesk\Additional\SpamAssassin\SpamFilterUserConfigsPath\****\bayes_journal”
bayes: expire_old_tokens: Insecure dependency in sysopen while running with -T switch at C:\PROGRA~2\PARALL~1\Plesk\ADDITI~1\Perl\site\lib/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~2\PARALL~1\Plesk\ADDITI~1\Perl\site\lib/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~2\PARALL~1\Plesk\ADDITI~1\Perl\bin\sa-learn line 490.

SOLUCION:

Ve a las propiedades de C:\Program Files (x86)\Parallels\Plesk\Additional\Perl\site\lib\Mail\SpamAssassin\Util.pm y desmarca la de solo lectura. Luego edita el archivo y cambia la siguiente línea:

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

Por:

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

Dejamos los links a las fuentes para más información

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

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