• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

renamed a domain, email accounts caused problems

tkalfaoglu

Silver Pleskian
I had a domain called xyz.com with an alias of abc.com..
The customer notified me that xyz.com was not going to be used anymore, and would I get rid of it.

So, I deleted abc.com which was an alias..
Then I went into hosting settings, and changed xyz.com to abc.com.
(This is something I occasionally do, and does not normally cause problems.)

This time, it gave me an error saying that the mail folder /var/qmail/mailnames/abc.com already exists,
and refused to do it. I manually deleted that folder, and clicked submit, and it accepted it -- the renaming of the domain was complete.

However, when I do a showemailpassword xyz.com it still shows me the old email addresses.
I deleted all the email accounts the customer had from plesk gui, and recreated them again with the new domain (abc.com), but the old ones that end with xyz.com still exists in the tables, of course now the new ones also exist with the same username.. i.e., [email protected] and [email protected] both exist according to plesk's showemailpassword program. The control panel does not know anything abut the old domain, xyz.com however.

What shall I do, why did the renaming fail?
PS: I have all patches applied.. Including the latest one.

-turgut
 
Last edited:
Apparently the issue is deeper -- on disk, I see that lots of xyz.com files still remain, such as the entire web site,
/var/www/vhosts/xyz.com/..... and many other files such as:
/etc/httpd/conf/plesk.conf.d/vhosts/xyz.com
/etc/httpd/conf/plesk.comf.d/webmails/atmail/xyz.com..
/etc/nginx/plesk.conf.d/vhosts/xyz.com..
/home/backup/dumps/clients/xyz.com..

I can of course go and rename these, but if the plesk tables are not updated accordingly, the generated http/nginx/etc files will not be correct.. What shall I do?
 
I deleted abc.com from plesk gui, then did a locate on disk and removed all of xyz and abc.
after it was all clean, I created a new hosting for abc.com, restored the web site from backup,
and re-created the mail accounts. Phew, it seems alright now! Still wonder why it failed so badly during rename..
 
Back
Top