Article ID: 123727, created on Nov 29, 2014, last review on Dec 1, 2014

  • Applies to:
  • Plesk 12.0 for Windows
  • Plesk 11.0 for Windows
  • Plesk 11.5 for Windows


  • Spamassassin does not detect spam messages. A GTUBE test pattern was used to make sure the message does not filter

  • I have Plesk and SpamAssassin installed on the drive other than C: and having short (8.3) filenames disabled
  • Unable to to create an email address, I got an error from spammng.exe alike:

    "D:\Program Files (x86)\Parallels\Plesk\/admin/bin/spammng" "--sensitivity=7" "--mailname=user@domain.tld" failed with message: Could not find file 'D:\Program Files (x86)\Parallels\Plesk\\Additional\Perl\site\\share\\spamassassin\\user_prefs.template'. (code 0)

Error in Windows EventViewer:

System.Exception: Unable to train spamassasin: Can't open perl script "D:\Program Files (x86)\Parallels\Plesk\Additional\Perl\site\bin\sa-learn": No such file or directory

  at operation, String mail_name, String file_name)
   at[] args)


NMAKE : fatal error U1073: don't know how to make 'D:\Program'


  1. Lack of binary files at 'D:\Program Files (x86)\Parallels\Plesk\Additional\Perl\site\bin\'
  2. Perl could not recognize the long filenames, (path with 'space' characters) due to disabled creation of short file names on local disk (which is typically enabled by default):

    NMAKE : fatal error U1073: don't know how to make 'D:\Program'


  1. Enable creation of short names on disk:

    fsutil 8dot3name set D: 0
    Successfully enabled 8dot3name generation on D:
  2. Stop every processes and services related to 'D:\Program Files (x86)\'

  3. Use fsutil to create the shortname for 'D:\Program Files (x86)\' as 'PROGRA~2'

    fsutil file setshortname "D:\Program Files (x86)" PROGRA~2
    dir /x /a
    07.03.2014  09:12    <DIR>        PROGRA~2      Program Files (x86)
  4. Reboot the server

  5. Modify %plesk_dir%\Additional\Perl\lib\ replace all Program Files (x86) with PROGRA~2

  6. Go to System > Advanced system settings > Environment Variables > Path (in Global) > Edit > Replace Program Files (x86) with PROGRA~2 for Perl path only. (be careful, do not loose other data in this field)

  7. Export Windows registry hives to file prior to make any changes

  8. Modify path in Windows registry:

    • In HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Perl replace all Program Files (x86) with PROGRA~2
    • In HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\PLESK\PSA Config\Config\SpamFilterUserConfigsPath


HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\PLESK\PSA Config\Config\SpamFilterUserConfigTemplateFile


  1. Uninstall SpamAssassin and install again using Plesk autoinstaller.

  2. Modify %plesk_dir%\Additional\SpamAssassin\makefile: replace all Program Files (x86) with PROGRA~2

  3. Modify %plesk_dir%\Additional\SpamAssassin\install.bat remove 2 words exit and add pause at the end of this script to be able to see installation progress.

  4. Execute install.bat

Search Words

Spamassassin does not detect spam

Unable to train spamassasin: Can't open perl script

NMAKE : fatal error U1073: don't know how to make

Error: Unable to set Plesk SpamAssassin 3.3.2 as the default Spam Filter: defpackagemng failed: Execute spammng.exe --check failed with error code 1: Unable generate the unique file name by template e:\Program Files (x86)\Parallels\Plesk\Additional\Perl\site\etc\mail\spamassassin\[*].bak: directory e:\Program Files (x86)\Parallels\Plesk\Additional\Perl\site\etc\mail\spamassassin does not exist

Can't open perl script

short file names

ed7be2b984f9c27de1d2dc349dc19c6d 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 85a92ca67f2200d36506862eaa6ed6b8 a766cea0c28e23e978fa78ef81918ab8 514af229ae32522202a910a2649c80fb bd7fc88cf1b01f097749ae6f87272128 46a8e394d6fa13134808921036a34da8

Email subscription for changes to this article
Save as PDF