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 to ONLY host web, NOT mail or DNS??

Discussion in 'Bind / DNS / Nameserver Issues' started by sneader, Apr 3, 2004.

  1. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    Probably a newbie question, but I have a customer that runs their own DNS and Mail Server. They only want to use me for hosting their web site.

    I've read elsewhere here that to get the server to not deliver mail locally, I need to:

    1) remove the domain entry from /etc/userdomains
    2) remove the domain entry from /etc/localdomains
    3) add the domain name in /etc/remotedomains

    (this is supposedly from cPanel support).

    Assuming that works for mail, how do I remove DNS for this customer?

    Thanks for helping your friendly newbie.

    - Scott
     
  2. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
    Scott,

    cPanel will automatically create a zone for that customer. Unless something changed recently you cannot stop it from doing this. I think your only option is to delete the zone manually in the WHM.

    As for the mail, add the domain to /etc/remotedomains and remove the domain from /etc/localdomains, leave the domain in /etc/userdomains since all that does is show what domain points to what user. As long as the domain is in remotedomains and not in localdomains exim should not except mail for it.
     
  3. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    Hi Shaun!

    Thanks for taking time to document everything. I did the changes you suggested, but it was still accepting mail until I restarted Exim... now it rejects mail for that domain. Perfect... thanks again!!

    - Scott
     
  4. shaun

    shaun Well-Known Member

    Joined:
    Nov 9, 2001
    Messages:
    698
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    San Clemente, Ca
    Whoops, ya sorry, you have to restart exim or send it a SIGHUP so that it will re-read the confs.
     
  5. perlchild

    perlchild Well-Known Member

    Joined:
    Sep 1, 2002
    Messages:
    279
    Likes Received:
    0
    Trophy Points:
    16
    If you only host web, I'd say it might be worth adding the customer manually, and not give any kind of control panel access, as that will be highly confusing to the client(most features do deal with dns and/or mail at some point, even subdomains)
    Unless you built your own custom, highly-restricted skin for this purpose
     
  6. sneader

    sneader Well-Known Member

    Joined:
    Aug 21, 2003
    Messages:
    1,126
    Likes Received:
    21
    Trophy Points:
    38
    Location:
    La Crosse, WI
    cPanel Access Level:
    Root Administrator
    This is what the Feature Manager is for! Simply create a list of web-only features, perhaps minus the add-on domains... should be pretty easy to do.

    - Scott
     
Loading...

Share This Page