SmarterMail: Unable to activate mail service: Failed to rename domain

Created:

2016-11-16 13:15:21 UTC

Modified:

2017-04-24 11:12:10 UTC

0

Was this article helpful?


Have more questions?

Submit a request

SmarterMail: Unable to activate mail service: Failed to rename domain

Applicable to:

  • Plesk 10.1 for Windows
  • Plesk 12.0 for Windows
  • Plesk 12.5 for Windows

Symptoms

An attempt to activate mail service on domain fails with the following error:

Error: mail_Facade->turnOnDomain() failed: mailmng failed: Can't rename domain.
Domain: example.com [example.com].
Reason:
Failed to rename domain 'example.com.disabled' to 'example.com'
at (SmarterMail::SMDomain::throwDomainError line 630)
at execute console command --turn-on-domain(vconsoleapp::start line 132)
at execute "C:\\Program Files (x86)\\Parallels\\Plesk\\/admin/bin/mailmng" --turn-on-domain "--domain-name=example.com"(vconsoleapp::run line 143)

The mchk.exe utility fails with the same "Failed to rename domain" error:

C:\\Program Files (x86)\\Parallels\\Plesk\\admin\\bin>mchk.exe --domain  --domain-name=example.com --fix=local
Can't rename domain.
Domain: example.com [example.com].
Reason:
Failed to rename domain 'example.com.disabled' to 'example.com'
at (SmarterMail::SMDomain::throwDomainError line 630)
at execute console command --domain(vconsoleapp::start line 132)
at execute mchk.exe --domain "--domain-name=example.com" "--fix=local"(vconsoleapp::run line 143)

Cause

The C:\\SmarterMail\\Domains\\example.com folder already existed on the server.

In general while disabling mail service corresponding "SmarterMail\Domains" folder is being renamed to .disabled , the name is changed back to original one when the mail service for domain is switched on again.

Resolution

  1. Locate and backup C:\\SmarterMail\\Domains\\example.com and C:\\SmarterMail\\Domains\\example.com.disabled folders.

  2. Compare the content/size of the folders, choose the one that has all users in the Users subfolder and rename that folder to 'example.com.disabled' (if needed).

  3. Activate mail service under the Mail > Change Setting

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