Unable to change Server-Wide Mail Settings: Failed to exec mail_handlers_control utility

Created:

2016-11-16 12:41:10 UTC

Modified:

2017-04-24 12:15:21 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Unable to change Server-Wide Mail Settings: Failed to exec mail_handlers_control utility

Applicable to:

  • Plesk 11.5 for Linux

Symptoms

An attempt to enable " DomainKeys spam protection " under the Tools & Settings > Mail Server Settings fails with the following error:

Error: Unable to change the settings for the DomainKeys verification service

An attempt to " Switch on SPF spam protection " under the Tools & Settings > Mail Server Settings fails with the following error:

ERROR: PleskUtilException
Failed to exec mail_handlers_control utility: Unable to add handler(s). See log for details.

The following error can be observed in the /usr/local/psa/admin/logs/panel.log :

2014-04-17T19:44:30+04:00 ERR (3)  [panel]: Failed to exec mail_handlers_control utility: Unable to add handler(s). See log for details.
:
0: Handlers.php:163
Mail_Handlers->apply()
1: Unix.php:183
Service_Driver_Mail_Plesk_Server_Unix->applyHandlers()
2: Facade.php:188
Mail_Facade->applyHandlers()
3: Facade.php:174
Mail_Facade->addHandler(string 'spf', string 'global', string '/usr/local/psa/handlers/hooks/spf', string 'spam protection framework', string 'before-queue', integer '10')
4: Manager.php:100
Mail_Server_SpamFilter_Manager->update()
5: mail.php3:59
[17-Apr-2014 19:44:30 Europe/Moscow] PleskUtilException: Failed to exec mail_handlers_control utility: Unable to add handler(s). See log for details.

file: /usr/local/psa/admin/plib/Mail/Handlers.php
line: 163
code: 0
trace: #0 /usr/local/psa/admin/plib/Service/Driver/Mail/Plesk/Server/Unix.php(183): Mail_Handlers->apply()
#1 /usr/local/psa/admin/plib/Mail/Facade.php(188): Service_Driver_Mail_Plesk_Server_Unix->applyHandlers()
#2 /usr/local/psa/admin/plib/Mail/Facade.php(174): Mail_Facade->applyHandlers()
#3 /usr/local/psa/admin/plib/Mail/Server/SpamFilter/Manager.php(100): Mail_Facade->addHandler('spf', 'global', '/usr/local/psa/...', 'spam protection...', 'before-queue', 10)
#4 /usr/local/psa/admin/htdocs/server/mail.php3(59): Mail_Server_SpamFilter_Manager->update()
#5 {main}

Cause

Parallels Plesk Panel mail server configuration became corrupt.

Resolution

Restore mail server configuration using the mchk utility, run the following command:

# /usr/local/psa/admin/sbin/mchk --with-spam
Have more questions? Submit a request
Please sign in to leave a comment.