• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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