runtask.exe scheduled tasks fails with SMTP exception, statistics page shows default page

Created:

2016-11-16 13:22:31 UTC

Modified:

2017-08-16 16:49:28 UTC

0

Was this article helpful?


Have more questions?

Submit a request

runtask.exe scheduled tasks fails with SMTP exception, statistics page shows default page

Applicable to:

  • Plesk 11.x for Windows
  • Plesk 12.0 for Windows
  • Plesk 12.5 for Windows
  • Customer and Business Manager

Symptoms

Web statistics page shows, but there are should be webstat for more than 1 day available for a domain:

This is the placeholder for Web statistics. If you see this page that means that statistics service has not run yet on your server. Statistics service is typically set to run once every 24 hours. If you do not see a change to this page in the next 24 hours contact your server administrator for assistance.

Daily Web Statistics Analyzer Run task fails or is in Running state forever, but manually launched statistics calculation task is successful and webstat data becomes available.

The following error message from runtask.exe can be found in the Plesk Event log in Windows Event Viewer

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

The same error appears when trying to execute runtask manually from command line, as for an example:

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

The following errors may appear in Mail server logs %plesk_dir%\\Mail Servers\\Mail Enable\\Logging\\SMTP :

SMTP-IN 837366CD80CD4C32A4AFE5B2D6A140F0.MAI 1376 127.0.0.1 AUTH ****** 504 Invalid Username or Password 34 18

or:

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

or:

SMTP-IN localhost 127.0.0.1 1748 MAIL MAIL+FROM:+<user@domain.tld> 551+Sender+address+is+not+valid+for+your+login.+Check+your+email+program+settings. OWNEROR-D5U54AO 84 33 postmaster@localhost

Cause

Daily web statistics analyzers run task (web_statistics_executor.exe) that is run under runtask.exe is unable to send an email to the external email address. If any error happens during runtask.exe work, the whole task will fail.

Plesk executes all scheduled tasks via runtask.exe with --defaultmail parameter or with an email address specified in Task Scheduler settings for a task. By default, Plesk is using mail account which is indicated during Plesk installation, it is available in Profile and Preferences menu in Plesk.

Resolution

  1. Disable Authenticated senders must use address from their postoffice (or it may be called Authenticated senders must use valid sender address ) feature in MailEnable Administration console > Servers > Localhost > Connectors > SMTP Properties > Security tab.

  2. Enable Allow Relay For Privileged IP Ranges and ensure that 127.0.0.1 is listed in the Privileged IPs list.

If it does not help, add IP address of the external SMTP server where domain.tld is hosted is added in the hosts file.

Additional details

#213365289 Notifications sent to the external email domain are not being sent: Error sending the report

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