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.

How do you remove an accounts MX records?

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

  1. eglwolf

    eglwolf Well-Known Member

    Joined:
    Jan 1, 2004
    Messages:
    168
    Likes Received:
    0
    Trophy Points:
    16
    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

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    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:
     
Loading...

Share This Page