Article ID: 124918, created on Mar 19, 2015, last review on Sep 2, 2016

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


  • Scheduled statistics calculation task fails, but manually launched statistics calculation task is successful.

  • The following error message from "runtask.exe" can be found in the Plesk Eventlog in Windows EventViewer

    SMTP Exception at Unable to execute event(runtask::start line 210) C:\Program Files (x86)\Parallels\Plesk\admin\bin\runtask.exe

  • At the same time as SMTP Exception error appears, the following can be seen in the Mail server log %plesk_dir%\Mail Servers\Mail Enable\Logging\SMTP\SMTP-Activity-150303.log

    03/03/15 17:20:49 SMTP-IN 837366CD80CD4C32A4AFE5B2D6A140F0.MAI 1376 AUTH ** 504 Invalid Username or Password 34 18


    Account localhost Mailbox postmaster@localhost prevented from sending email as user@domain.tld.


Plesk executes all scheduled tasks via 'runtask.exe' with '--defaultmail' parameter or with an email address specified in Scheduled Task settings. Note: By default, Plesk using mail account which is created by Plesk during an installation.

Home > Subscriptions > domain.tld > Websites & Domains > Scheduled Tasks > <Task_Name> Settings

Home > Tools & Settings > Scheduled Tasks > <Task_Name>

The runtask tries to send an email to the default email address(es) configured in Plesk

If any error happens during runtask.exe work, the whole task will fail.


  1. Enable debug logging in MailEnable (SMTP Activity log should be also enabled):

    Configuration of Connectors, Services and Agents > Connectors > SMTP Connector > SMTP - Logging

  2. Execute runtask manually from command line, as for an example:

    "%plesk_bin%\runtask.exe" --defaultmail "--application=%plesk_bin%\php.exe" "--parameters=-r \"echo 'Hello';\""

    or just create any sample Scheduled Task from Plesk GUI and run it either via Plesk Scheduled Task or from Windows Task Scheduler

  3. Watch for an output in the Command Prompt or in a Plesk Event log in Windows EventViewer

  4. Create a test email account in Plesk and configure Plesk to use it or an existing one, if credentials are known. Tools& Settings -> External SMTP Server -> External SMTP server settings

  5. Try to send a mail with SMTP AUTH as a mail account user from the step #4.

  6. If it fails, create a new email account directly via MailEnable

    MailEnable Admin -> 'MailEnable Management->Messaging Manager->PostOffices->MailBoxes->New Mailbox'. Then repeat the previous step #5.

If the mail is sent successfully - please create a support request to Plesk technical support.

If "account prevented from sending email as user@domain.tld" error message is observed in the mail log, please follow instructions from KB #124789

Search Words


SMTP Exception at Unable to execute event(runtask::start line 210)

The system cannot find the file specified. (Error code 2) at CreateProcess

mailbox size

504 Invalid Username or Password

prevented from sending email as

Cannot access a closed file

stats not working

stats not running

periodic tasks are not executed

ed7be2b984f9c27de1d2dc349dc19c6d 56797cefb1efc9130f7c48a7d1db0f0c a914db3fdc7a53ddcfd1b2db8f5a1b9c 85a92ca67f2200d36506862eaa6ed6b8 a766cea0c28e23e978fa78ef81918ab8 8b661cab116c79dbe6c4ac5bbdf1c8cb 46a8e394d6fa13134808921036a34da8 bd7fc88cf1b01f097749ae6f87272128

Email subscription for changes to this article
Save as PDF