Article ID: 119704, created on Jan 17, 2014, last review on Jun 17, 2016

  • Applies to:
  • Plesk 11.5 for Windows


Mail creation from Plesk Panel GUI hangs.

In Task Manager you can see a lot of 'spammng.exe' processes.

One of the possible causes is that spam training process fails if there is a folder named "spam" located in some customer's 'Inbox'.

Please follow the blow steps in order to make sure that the above is your case:

  1. Open one of the mailboxes folders:

    %plesk_dir%\Mail Servers\Mail Enable\Postoffices\domain.tld\MAILROOT\<username>\Inbox
  2. Create folder "spam"

  3. Run the following command for the spamtrain:

    "%plesk_dir%\admin\bin\php.exe" -dauto_prepend_file="" -ddisplay_errors=on "%plesk_dir%\admin\plib\DailyMaintainance\script.php" -f ExecuteSpamtrain

    It fails with the following error:

    PHP Warning: imap_open(): Couldn't open stream {}Inbox\spam
    Line: 36
    File: C:\Program Files (x86)\Parallels\Plesk\admin\plib\Spamassassin\adapter\Imap.php
    Stack Trace:
    #0  Smb_Exception_Syntax::handleError(2, imap_open(): Couldn't open stream {}Inbox\spam, C:\Program Files (x86)\Parallels\Plesk\admin\plib\Spamassassin
    \adapter\Imap.php, 36, Array ([folder] => \Inbox\spam))
    #1  imap_open({}Inbox\spam, username@domain.tld, mack12) called at [C:\Program Files (x86)\Parallels\Plesk\admin\plib\Spamassassin\adapter\Imap.php:36
    #2  Spamassassin_Adapter_Imap->_open(\Inbox\spam) called at [C:\Program Files (x86)\Parallels\Plesk\admin\plib\Spamassassin\adapter\Imap.php:135]
    #3  Spamassassin_Adapter_Imap->removeMessagesOlderThen(\Inbox\spam, DateTime Object ([date] => 2013-10-23 13:50:58,[timezone_type] => 3,[timezone] => Europe/Lon
    don)) called at [C:\Program Files (x86)\Parallels\Plesk\admin\plib\Spamassassin\Trainer.php:180]
    #4  Spamassassin_Trainer->_removeOldMessages(Array ([0] => \Inbox\spam), DateTime Object ([date] => 2013-10-23 13:50:58,[timezone_type] => 3,[timezone] => Europ
    e/London)) called at [C:\Program Files (x86)\Parallels\Plesk\admin\plib\Spamassassin\Trainer.php:168]
    #5  Spamassassin_Trainer->train(DateTime Object ([date] => 2013-10-23 13:50:58,[timezone_type] => 3,[timezone] => Europe/London), DateTime Object ([date] => 201
    3-11-22 00:00:00,[timezone_type] => 1,[timezone] => +00:00)) called at [C:\Program Files (x86)\Parallels\Plesk\admin\plib\DailyMaintainance\Task\ExecuteSpamtrai
    #6  DailyMaintainance_Task_ExecuteSpamTrain->run(Array ([period] => daily)) called at [C:\Program Files (x86)\Parallels\Plesk\admin\plib\DailyMaintainance\Runne
    #7  DailyMaintainance_Runner_Task->run() called at [C:\Program Files (x86)\Parallels\Plesk\admin\plib\DailyMaintainance\task-script.php:14]


Internal Plesk issue with id #PPPM-1122.


Fix for the issue was released in Plesk 11.5 MU #31. Consider to apply latest microupdate.

If by some reason it is not possible to apply the latest Plesk microupdate, please follow the instruction:

Replace %plesk_dir%\admin\plib\Spamassassin\adapter\Imap.php with 'this'

Related articles


Search Words

Gui timeout when creating mailbox

Mail creation hangs




IMAP connection string

Mail creation from Plesk Panel GUI hangs

Mail is not creating


a folder named "spam" located in some customer's 'Inbox'

Mail is not creating

mail tab not responding


a914db3fdc7a53ddcfd1b2db8f5a1b9c 56797cefb1efc9130f7c48a7d1db0f0c 46a8e394d6fa13134808921036a34da8 85a92ca67f2200d36506862eaa6ed6b8 bd7fc88cf1b01f097749ae6f87272128

Email subscription for changes to this article
Save as PDF