Mail creation from Plesk Panel GUI hangs [Spamtrain fails if there is "spam" folder under inbox]

Created:

2016-11-16 13:16:30 UTC

Modified:

2017-08-16 17:05:00 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Mail creation from Plesk Panel GUI hangs [Spamtrain fails if there is "spam" folder under inbox]

Applicable to:

  • Plesk 11.x for Windows

Symptoms

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 {127.0.0.1}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 {127.0.0.1}Inbox\\spam, C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\plib\\Spamassassin
    \\adapter\\Imap.php, 36, Array ([folder] => \\Inbox\\spam))
    #1 imap_open({127.0.0.1}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
    n.php:73]
    #6 DailyMaintainance_Task_ExecuteSpamTrain->run(Array ([period] => daily)) called at [C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\plib\\DailyMaintainance\\Runne
    r\\Task.php:26]
    #7 DailyMaintainance_Runner_Task->run() called at [C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\plib\\DailyMaintainance\ ask-script.php:14]

Cause

Internal Plesk issue with id #PPPM-1122.

Resolution

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

/213405909

Attachments:

Have more questions? Submit a request
Please sign in to leave a comment.