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!

How do you remove an accounts MX records?

Discussion in 'General Discussion' started by eglwolf, Mar 5, 2005.

  1. eglwolf

    eglwolf Well-Known Member

    Jan 1, 2004
    Likes Received:
    Trophy Points:
    I have a custom that does not want email, any emails, sent to him. He gets a LOT of spam, so I wanted to just remove the mx records from the server to stop routing all the spam, or at least have it stop hitting the server.

    How can I do this?
  2. chirpy

    chirpy Well-Known Member Verifed Vendor

    Jun 15, 2002
    Likes Received:
    Trophy Points:
    Go on, have a guess
    Realistically, you can't because SMTP servers will try the A record if the MX doesn't exist. If they don't want email delivered for the domain simply remove the domain from /etc/localdomains and place it into /etc/remotedomains (create the file if necessary). For good measure, then delete any Mail accounts and Forwarders and set the Default Address to :fail:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

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