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!

Null MX record

Discussion in 'Bind/DNS/Nameserver' started by Dan Garrow, May 12, 2018.

  1. Dan Garrow

    Dan Garrow Registered

    Joined:
    Jan 24, 2017
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    United States
    cPanel Access Level:
    Root Administrator
    I would like to null route email at DNS level for domains that do not accept email.

    RFC7505 specifies that adding a "Null MX" record with "with an RDATA section
    consisting of preference number 0 and a zero-length label, written in
    master files as ".", as the exchange domain, to denote that there
    exists no mail exchanger for a domain."

    Unfortunately cPanel gives an error "Unable to parse zone: Invalid DNS record: Supplied exchange for MX record is invalid" when trying to add the Null MX record.

    CENTOS 6.9, WHM 70.0.34, BIND 9.8.2

    I realize that it can be dropped at MTA and/or set to remote.

    Has anyone had any luck with setting Null MX records?
     
  2. cPanelLauren

    cPanelLauren Forums Analyst
    Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    2,721
    Likes Received:
    186
    Trophy Points:
    143
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello,


    Because of the DNS lookup that occurs when you modify the IP address associated with the MX record this won't function as you're intending. You can remove the MX record entry though.


    Thanks!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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