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.

Disable Local Mail for an Account

Discussion in 'E-mail Discussions' started by troykelly, Jul 19, 2007.

  1. troykelly

    troykelly Registered

    Joined:
    Jul 19, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    I can not for the life of me work out how to set mail as "disabled" for a local account.

    Many of our clients now host their email at google app's - so how can I set mail as not enabled for those accounts.

    At the moment - they can not receive any email created by the server for their domain as it (understandably) tries to deliver locally.
     
  2. Vision

    Vision Active Member

    Joined:
    Mar 18, 2002
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    Hello,

    Remove their domains from /etc/localdomains and add them to /etc/remotedomains.
     
  3. troykelly

    troykelly Registered

    Joined:
    Jul 19, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Is there no way to do it from the interface though?
     
  4. Vision

    Vision Active Member

    Joined:
    Mar 18, 2002
    Messages:
    35
    Likes Received:
    0
    Trophy Points:
    6
    cPanel Access Level:
    Root Administrator
    As far as i know you can't do this from WHM. You can easily login with an SSH client (ie Putty) and modify the 2 files otherwise you better ask an admin to do it for you.
     
  5. mtindor

    mtindor Well-Known Member

    Joined:
    Sep 14, 2004
    Messages:
    1,281
    Likes Received:
    37
    Trophy Points:
    48
    Location:
    inside a catfish
    cPanel Access Level:
    Root Administrator
    Yes you can do it from the Cpanel interface for that account, and actually that is preferred in this instance.

    Log into Cpanel for the account in question
    - then (if CPanel 11) click on MX Entry under the Mail section
    OR
    - (if Cpanel 10) click on Mail then Modify Mail Exchanger

    You want to change the MX (Mail Exchanger) entry to at least the lowest numbered MX for that domain (based upon what Google Apps told you to use).

    That will do two things:
    1. Will remove that domain from /etc/localdomains and put it in /etc/remotedomains
    2. Will modify the DNS zone that that particular Cpanel machine is using so that it has an MX record that points to the Google MX.

    This will allow you to send mail to that domain, from a script on the server, and it will be delivered to Google for delivery instead of to the local machine.

    After you do the above, you may want to go into WHM and edit the DNS zone file for that domain and add the additional MX records (so that all of them are listed in the local DNS zone instead of just the one you added via Cpanel).

    Mike
     
  6. niyogi

    niyogi Member

    Joined:
    Aug 13, 2003
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    This should really be an option in WHM as well - although it's great that it can be handled through cPanel as well.
     
Loading...

Share This Page