when adding a domain as an alias there is no option to add mail for this domain

stagedirector

New member
Joined
Feb 27, 2026
Messages
3
I have a multi-store configuration with the domains shop.net and 2.shop.net.
The domain 2.shop.net was created as an alias and points to the same directory as shop.net.


I would like to create an email address in the format mail.1.shop.net, but I do not see such an option available.


Additionally, when I try to add 2.shop.net as a separate domain, it automatically redirects to shop.net, which causes me to lose the storefront of the second store.
Is there a way to resolve this issue or work around the limitation?
 
I would like to create an email address in the format mail.1.shop.net, but I do not see such an option available.
In order to have seperate mail addresses you have to create 1.shop.net not as subdomain but as seperate domain name.

when I try to add 2.shop.net as a separate domain, it automatically redirects to shop.net,
That seems odd to me, should not happen. Try to disable automatic redirect in Directadmin itself, set it to "none" and see if that helps. But you have to remove the alias first.
 
That seems odd to me
Hello,

I think there is a misunderstanding about my setup and what I am trying to achieve.

I am running a multistore configuration where:

  • shop.net is the main store
  • 2.shop.net is not a separate website — it must point to the same document root and use the same files as shop.net
Currently, 2.shop.net is configured as an alias/domain pointer to shop.net, and the multistore works correctly this way.

The problem is that I need to create an email address like [email protected], but DirectAdmin does not allow creating email accounts for subdomains or aliases.

If I remove the alias and create 2.shop.net as a separate domain (as suggested), DirectAdmin creates a separate document root and the multistore setup breaks because 2.shop.net must use the same folder as shop.net.

So my goal is:

  • keep shop.net and 2.shop.net using the same document root (multistore setup)
  • be able to create email accounts for 2.shop.net
Could you please clarify what is the recommended way to achieve this in DirectAdmin without breaking the multistore configuration? Is it possible to create a mail domain for 2.shop.net while keeping it pointing to the same document root as shop.net?

Thank you.
 
create the site (2.xxxx) as new domain, and use the "custom Httpd configuration" on the admin menu to change the Doc Root.

add this in the main "custom" box on both nginx and httpd ( if using nginx_apache ).
Code:
|?DOCROOT=/home/your_username/domains/shop.net/public_html|
 
create the site (2.xxxx) as new domain, and use the "custom Httpd configuration" on the admin menu to change the Doc Root.
Hello,

Thank you for your help and guidance.

I followed your recommendation — created 2.shop.net as a separate domain and changed the document root using Custom Httpd Configuration to point to the same directory as shop.net. Everything is now working correctly: the multistore setup works and I can create email accounts for 2.shop.net.

I appreciate your support.

Best regards.
 
Back
Top