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 as mail server to parent domain

Discussion in 'E-mail Discussions' started by superpotion, Sep 27, 2011.

  1. superpotion

    superpotion Registered

    Joined:
    Sep 27, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Reseller Owner
    Scenario:

    1. mydomain.com is on a remote host that does not have it's own mail server. It is in effect a only DNS server, so all I can do is edit dns records.
    2. On my host (cPanel & WHM) I want to manage mail for mydomain.com
    3. My host has a nameserver, ns1.my-dns.com, and my ip is 99.99.99.99
    Partial Solution:

    1. on my host create an account, mail.mydomain.com - in effect a subdomain of the remote parent.
    2. on the parent host, add DNS records:
    mail.mydomain.com. IN NS ns1.my-dns.com.
    mail.
    mydomain.com. 14400 IN A 99.99.99.99
    mydomain.com. 14400 IN MX 0 mail.mydomain.com.

    (probably don't need both the NS and A record - either should work by itself)

    :) So, mail for user@mydomain.com gets sent to the mail exchanger at mail.mydomain.com.

    :confused: But the mail headers will still show that the recipient is user@mydomain.com and not user@mail.mydomain.com. Where will the mail be delivered, if it is delivered at all?

    I don't have access to the SMTP/Sendmail configs on my server, so cannot fix any aliasing for the domains.

    I thought that I could use a forwarder (user@mydomain.com forwarded to user@mail.mydomain.com), but that doesn't seem possible.

    What do I need to do to have my subdomain receive mail for the parent?

    Denis.
     
  2. jdarow

    jdarow Well-Known Member
    PartnerNOC

    Joined:
    May 30, 2003
    Messages:
    88
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Michigan, US
    cPanel Access Level:
    DataCenter Provider
    Create a cPanel account for mail.domain.com.
     
Loading...

Share This Page