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.

subdomain that point to an IP address

Discussion in 'General Discussion' started by strategy7, Jun 23, 2011.

  1. strategy7

    strategy7 Registered

    Joined:
    Jun 23, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    A company have their own mail server with a static IP
    I have created the main account like companyname.com and another account like mailserver.companyname.com on the same cpanel
    How to edit the dns zone on the first account and on the second so the second will serve as only mailserver?
    Do I have to change only the record "mail" from CNAME to A and set the IP?
    Is that all?
    Ty
    Fiore
     
  2. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,281
    Likes Received:
    37
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    If I understand you correctly, you are saying this:

    1. You have an account set up on cPanel for "companydomain.com"
    2. Your company operates their own mailserver on a static IP address 1.1.1.1 (not local to the cPanel server)

    If that is the case, then you simply want to do this (via http://www.companyname.com/cpanel):

    1. Edit the DNS zone for companyname.com

    a. change the "mail" CNAME record to an "A" record and point it to 1.1.1.1 (whatever the static IP of the mailserver is)

    b. Under "MX Entry", change the MX entry so that the MX is mail.companyname.com (instead of just companyname.com)

    c. Under "MX Entry" set it as a Remote Mailserver

    NOTE: Why did you create another account specifically for mail.companyname.com? If the only reason you did that was so that you could attempt to adjust mailsettings, you don't need the account for mail.companyname.com. If you only want to use mail.companyname.com to point to the static iP of your mailserver, then remove the account for mail.companyname.com and just edit the DNS zone in the companyname.com account to direct mail to the proper remote mailserver.

    Mike
     
  3. strategy7

    strategy7 Registered

    Joined:
    Jun 23, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Ty Mike
    I will follow your suggestions.
    The mailserver of the client use a firewall so just some ports are opened.
    Do they open the same port that use the main server on cpanel for mails?
    Ty
    Fiore
     
  4. strategy7

    strategy7 Registered

    Joined:
    Jun 23, 2011
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Another question Mike,
    fi the client want to have webmail ? How to set it?
    Ty
    Fiore
     
Loading...

Share This Page