Plesk – Error: Unable to remove client: mailmng failed: Some errors occured.


August 7th, 2010

On a plesk dedicated server while removing a client we were facing problems, we were getting the error:

Error: Unable to remove client: mailmng failed: Some errors occured. See log for details

Couldn’t find anything specific in the logs.

Solution:

Stop mail service by the below command:

root# /usr/local/psa/admin/sbin/mailmng --stop-service

Find all corrupted mail headers using the following command. For example:

root# find /usr/local/psa/handlers/before-* -type f | while read h ; do [ ! -d /usr/local/psa/handlers/info/$(basename $h) ] && echo $h  ; done

Delete the file you have got in the output of the above command:

rm -f /usr/local/psa/handlers/before-local/recipient/email@somedomain1.com/11-spam-asdDemCa

Run utility mchk to recreate mail handlers by the below command:

root# /usr/local/psa/admin/sbin/mchk --with-spam

Then, Start the mail service after the reconfiguration is completed by the below command.

root# /usr/local/psa/admin/sbin/mailmng --start-service

This should fix the problem that you’re facing, if for some reason this doesn’t work for you backup the handlers directory.

root# mkdir /root/back
root# cp -a /usr/local/psa/handlers/before-* /root/back/
root# cp -a /usr/local/psa/handlers/info /root/back/

Then, delete all the email handlers:

root# rm -rf /usr/local/psa/handlers/before-*/*
root# rm -rf /usr/local/psa/handlers/info/*

Run utility mchk to recreate mail handlers by the below command:

root# /usr/local/psa/admin/sbin/mchk --with-spam

Then, Start the mail service after the reconfiguration is completed by the below command.

root# /usr/local/psa/admin/sbin/mailmng --start-service

This should surely fix the problems.

This article is released by SupportFacility.Com — the leaders in providing outsourced technical support, live chat support & help desk support for web hosts. Interested ? Opt for a trial now.


No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment