Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 2 1 2 LastLast
Results 1 to 15 of 25
  1. #1
    Member
    Join Date
    Jun 2003
    Posts
    176

    Default how to turn off mail for a domain, nothing in, nothing out

    I have several accounts we don't want any email on. Nothing in, nothing out. How do I do that?

    thanks.

  2. #2
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Remove their DNS MX record
    Remove their domain from /etc/localhosts
    Add their domain to /etc/remotehosts

    That should cover just about everything.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  3. #3
    Member
    Join Date
    Jun 2003
    Posts
    176

    Default

    tried removing the mx record. whm won't allow me to do so. Gives an error msg.

  4. #4
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    You can just edit the zone file directly in /var/named/domain.com.db and remove the line with the MX record on it.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Matt,

    Would you, please, post a note telling us what you did to get this working.

    Thanks!

  6. #6
    Member
    Join Date
    Jun 2003
    Posts
    176

    Default

    So far, I have not been able to achieve what I needed.

    If I try to remove the MX record using "edit dns record" for the domain(s) in question, I cant'. I get an error msg.

  7. #7
    Member
    Join Date
    Oct 2003
    Posts
    1,020

    Default

    Originally posted by matt621
    So far, I have not been able to achieve what I needed.

    If I try to remove the MX record using "edit dns record" for the domain(s) in question, I cant'. I get an error msg.
    Why don't you do it how chirpy suggested? He is telling you how to do it directly (without going through WHM).

  8. #8
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Just to clarify,

    Is this the line I should be removing from domain.com.db:

    domain.com. 14400 IN MX 0 domain.com.

    and then restart Apache?

    Thanks

  9. #9
    Member
    Join Date
    Jun 2003
    Posts
    176

    Default

    Originally posted by SarcNBit
    Why don't you do it how chirpy suggested? He is telling you how to do it directly (without going through WHM).
    I'm not that good at command line editing. That's the reason I use cpanel in the first place. Trying to use the 'edit' function does not work.

  10. #10
    cPanel Partner NOC cPanel Partner NOC Badge jester.ro's Avatar
    Join Date
    Feb 2004
    Location
    Bucharest, Romania
    Posts
    304

    Default

    Originally posted by AndyReed
    Just to clarify,

    Is this the line I should be removing from domain.com.db:

    domain.com. 14400 IN MX 0 domain.com.

    and then restart Apache?

    Thanks
    yes, that's the one.
    then ndc reload, or rndc reload, not apache.

  11. #11
    Member
    Join Date
    Jun 2003
    Posts
    176

    Default

    then ndc reload, or rndc reload, not apache.
    what's ndc/rndc?

  12. #12
    Member mickalo's Avatar
    Join Date
    Apr 2002
    Location
    N.W. Iowa
    Posts
    753

    Default

    Originally posted by matt621
    what's ndc/rndc?
    I believe they mean restart named

    Mickalo

    Thunder Rain Internet Publishing

    Providing Internet Solutions that work!
    Custom Perl and Database Programming

  13. #13
    cPanel Partner NOC cPanel Partner NOC Badge jester.ro's Avatar
    Join Date
    Feb 2004
    Location
    Bucharest, Romania
    Posts
    304

    Default

    it's not really restarting named, it's just reloading the zones.
    0 downtime.
    i don't know exactly how cpanel restarts named from the WHM.

  14. #14
    Member mickalo's Avatar
    Join Date
    Apr 2002
    Location
    N.W. Iowa
    Posts
    753

    Default

    Originally posted by jester.ro
    it's not really restarting named, it's just reloading the zones.
    0 downtime.
    i don't know exactly how cpanel restarts named from the WHM.
    the WHM restarts BIND which I think is the same thing as restarting named, so the DNS zones are updated.

    Mickalo

    Thunder Rain Internet Publishing

    Providing Internet Solutions that work!
    Custom Perl and Database Programming

  15. #15
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    I removed the MX record in the DB and hope that turned off the email server. Now, my question is: know can I test it?

Similar Threads & Tags
Similar threads

  1. Turn off domain.com/cpanel
    By logikstudios in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 07-21-2008, 01:46 PM
  2. mod_mono: how to turn on for a domain?
    By nat in forum cPanel Developers
    Replies: 1
    Last Post: 02-09-2008, 01:20 PM
  3. Can I turn off suPHP for just one domain?
    By betoranaldi in forum Database Discussions
    Replies: 17
    Last Post: 01-09-2008, 08:16 PM
  4. Turn off email handling for domain
    By amorris in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-26-2006, 11:46 AM
  5. Turn my domain in to Nameserver
    By priyan in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 02-21-2004, 03:49 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube