Can't Add Web Domain after Add Mail Domain

Hi,

I already have a mail server set up with the domain xyz.com under User A in HestiaCP. Later, I tried to add a Web Domain with the same domain xyz.com under User B, but I received the error:

Error: Mail domain xyz.com exists

How can I fix this error so that I can properly manage xyz.com under the desired user?

Thank you.

Hi,

Double check that User A doesn’t have the mail domain.

Note: I will replace xyz.com with example.com (this domain is used for this purpose).

v-search-object example.com

If no mail domain, then you must change the option Enforce subdomain ownership from yes to no.

From Web UI:

Server settings -> Configure -> Security -> Policies -> Domains, change to No the option Enforce subdomain ownership and Save

From command line:

v-change-sys-config-value ENFORCE_SUBDOMAIN_OWNERSHIP no

Now try to add the mail domain from User B

Hello,

I want User A for email only. User B for web.

Can I use this scenario ?

Sorry, I mixed up the users, but the order of the factors doesn’t alter the product :stuck_out_tongue:

Is it possible? :smiley:

No, it’s not possible without modifying Hestia code.

Just to be clear, I didn’t understand your question. I thought you wanted to use a subdomain under another user, so I said yes, you can do that by disabling the enforce option. However, you can’t use the same base domain with two different users.

1 Like

Got it…

Can I add web domain after mail domain with same user?

1 Like

Yes, you can.

1 Like