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.

Different MX server than A record

Discussion in 'E-mail Discussions' started by ddaddy, Jun 24, 2016.

Tags:
  1. ddaddy

    ddaddy Member

    Joined:
    Aug 19, 2015
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    Hi, I have the A record of my domain pointing to an AWS server where my website is hosted.
    I'm having trouble getting email to be received on my WHM server as the MX record points to my domain, but my domain points to AWS.

    The MX field won't let me put in the IP address of my WHM server.

    Is there a way around this?
     
  2. ddaddy

    ddaddy Member

    Joined:
    Aug 19, 2015
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    UK
    cPanel Access Level:
    Root Administrator
    I think i've fixed it, but would love to know if what I have done is ok.

    I've create a new A name record for mailforward pointing to my WHM IP address.
    I created an MX record like this:
    mail forward MX 0 mailforward.mydomain.com

    Than I changed the original MX record for mydomain to point to mailforward.mydomain.com

    Now emails are coming through, but is this the right way to go about this?

    Thanks
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    Yes, you can simply configure the additional "A" record for the remote email host. Here's one example of this type of record:

    Replace "1.1.1.1" with the IP address of the email server that handles email for the domain name. Then, setup the MX record:

    Remember, your cPanel server must handle the DNS for the domain name if you are configuring these DNS records through cPanel/WHM.

    Thank you.
     
Loading...

Share This Page