FIX: Unable to get type of handler

Recently while changing the name of a domain from Plesk (Linux) it thrown following Error:

No such parameter 'handler-type' for handler '10-spam-MVquwk'
Unable to get type of handler: 10-spam-MVquwk

No such parameter 'handler-type' for handler '10-spam-LztqGr'
Unable to get type of handler: 10-spam-LztqGr

The problem is due to orphaned handlers in /usr/local/psa/handlers Directory. Whenever a domain name has been changed whole mail handler system is checked by Plesk. We have created handler directory copy in /usr/local/psa/handlers.copy and removed problem handlers manually. Then executed mail reconfiguration utility:

# /usr/local/psa/admin/sbin/mchk --with-spam
==> Checking for: mail_spam_restore... ok
==> Checking for: mailsrv_conf_init... ok
==> Checking for: mail_mailbox_restore... ok
==> Checking for: mailsrv_entities_dump... ok
==> Checking for: mail_auth_dump... ok
==> Checking for: mailman_lists_dump... ok
==> Checking for: mail_responder_restore... ok
==> Checking for: mail_drweb_restore... ok
==> Checking for: mail_kav_restore... not exsists
==> Checking for: mail_spf_restore... ok
==> Checking for: mail_dk_restore... ok

After this we were able to rename the domain successfully:

# /usr/local/psa/bin/domain --update -new_name
SUCCESS: Update of domain '' complete.

If the any problem noted due to the removal of Email Handlers, changes can be reverted using the backup directory which has been created before clearing handlers.

About: Mike

Milind Koyande loves to work on new technologies specially virtualization and troubleshoot server problems. I’m an avid photographer and love to spend my free time close to nature, trying to capture its glory on my camera.

This site uses Akismet to reduce spam. Learn how your comment data is processed.