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.

Possible to use Hostname as MX Server?

Discussion in 'Security' started by yagami_kira, Mar 25, 2017.

Tags:
  1. yagami_kira

    yagami_kira Member

    Joined:
    Mar 7, 2017
    Messages:
    16
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Tokyo
    cPanel Access Level:
    Website Owner
    I have a VPS server using WHM/cPanel.

    It has a registered hostname with free cpanel-signed hostname. But I don't use AutoSSL, nor do I have SSL certificates.

    In my Cloudflare DNS records (I'm not using cloudflare cdn features, only DNS), I have the MX record set to mail.mydomain.com. If I check the TLS through checktls.com, there's a warning there that says:

    "Cert Hostname DOES NOT VERIFY (mail.mydomain.com != hostname.mydomain.com)"

    I'm worried that this error may cause my emails to recipients (whether they use Yahoo, Gmail, Hotmail, etc.) to go their Spam/Junk folder.

    Therefore, may I ask if it is possible to change the MX record to the hostname ? Therefore, my MX record server will become hostname.mydomain.com instead of mail.mydomain.com. Or will doing this cause mailing problems?
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    568
    Likes Received:
    40
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hi,
    There is no issue to use hostname as MX record instead of mail.mydomain.com.
    You have to check server hostname using folowing command and use it.
    Code:
    hostname
    
     
  3. yagami_kira

    yagami_kira Member

    Joined:
    Mar 7, 2017
    Messages:
    16
    Likes Received:
    1
    Trophy Points:
    3
    Location:
    Tokyo
    cPanel Access Level:
    Website Owner
    Thanks. Will changing the MX record to hostname cause any downtime since I believe this needs to be propagated for 3 days ?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    Downtime should be minimal because the old record should still work until the DNS propagates to the new record.

    Thank you.
     
Loading...

Share This Page