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!

Domain pointer to subdomain, email problems

Discussion in 'E-mail Discussion' started by mpope2, Feb 15, 2002.

  1. mpope2

    mpope2 Well-Known Member

    Joined:
    Feb 8, 2002
    Messages:
    73
    Likes Received:
    0
    Trophy Points:
    306
    Hello,

    Currently, when I want to set somebody up who wants multiple domain names, I set up 1 account, and then add subdomains. So, if the person wants the main domain to be &maindomain.com& and also wants &2nddomain.com& and &3rddomain.com&, I would setup an account of &maindomain.com&, and then setup 2 subdomains &2nddomain.maindomain.com& and &3rddomain.maindomain.com&. Then, I point the domain names to these subdomains.

    Now, I want to forward all email from these domain names to the main account. I thought it would be as simple as adding an entry into /etc/valiases, but this does not appear to be working. How would I set these domains up so that they will point to the main account?

    Thanks!
     
  2. H2Hosting.com

    H2Hosting.com Well-Known Member

    Joined:
    Sep 4, 2001
    Messages:
    192
    Likes Received:
    0
    Trophy Points:
    316
    1) create &2nddomain.com& file in /etc/valiases/
    2) add line &*: main@email.com&
    3) add line &2nddomain.com& in /etc/localdomains
    4) add line &2nddomain.com: main_username& in /etc/userdomains
     
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice