Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Seperate hosting account Web and Email on one server

Discussion in 'Bind / DNS / Nameserver Issues' started by Krystian Kolasa, Sep 25, 2017.

  1. Krystian Kolasa

    Krystian Kolasa Registered

    Joined:
    Apr 12, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Poland
    cPanel Access Level:
    Reseller Owner
    Is there any solution to have websites and email in one domain on two hosting account?
    for example:
    hosting account_1: domain1.hosting.com
    hosting account_2: domain2.hosting.com

    Domain: domain.com

    I wan`t to have website on hosting account_1 and emails on account_2

    I tried on external DNS server:
    .domain.com MX domain2.hosting.com
    .domain.com A IP <IP hosting account_1>
    www.domain.com CNAME domain1.hosting.com
    and it`s doesn`t work

    In cpanel I can park domain.com only on one account.
    Is there any solution, not manual by ssh in files, to make record about one domain in apache for website in one hosting account and in exim for mails in another hosting accont. I think this could resolve my problem.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    This isn't supported at this time, as it's not possible to use the same domain name on multiple accounts. Can you elaborate some more on the purpose of this type of setup so we can offer you some potential alternatives?

    Thank you.
     
  3. Krystian Kolasa

    Krystian Kolasa Registered

    Joined:
    Apr 12, 2016
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Poland
    cPanel Access Level:
    Reseller Owner
    I`m not sure but when I park domain, there is modyfication in config file of exim (for mails) and in Apache (for www).
    If I can`t do that from WHM, can I make manual change in config file of exim and Apache?
    I only don`t know in which file or files I need to make changes. I want that cPanel saw in account_1 in "Aliases" my domain and in account_2 in Email Accounts=>"domain" my domain.
    I think then it should work
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,424
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Another alternative to adding the domain name as an alias to an existing cPanel account would be to create a separate cPanel account for the domain name and then setup a redirect that directs traffic to this domain name to the other domain name:

    Redirects - Documentation - cPanel Documentation

    Thank you.
     
Loading...

Share This Page