Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 4 of 4
  1. #1
    Member
    Join Date
    Sep 2004
    Location
    Hokksund, Norway
    Posts
    40

    Default Mail handling on remote server

    I've read some posts about this in these forums, but I'm just a bit confused . I wish someone would make a real howto about this.

    My idea is like this:
    1) I want my cPanel servers to be webservers only - and not handle mail.
    2a) All mail accounts should be handled by another servers, that are "clean" Linux servers (RHEL/Mandriva/Fedora/Debian with no control-panel (or perhaps Webmin))
    2b) All mail accounts should be handled by another servers, that are Plesk-servers (none of my customers wants Plesk as controlpanel anyway , so I want to use my Plesk-server as a clean mailserver)
    2c) All mail accounts should be handled by another server, that are also cPanel servers

    - What should be specified for the MX record in the DNS Zone-file? (IP or...?)
    - What should be specified for mail.domain.com? (A-record or CNAME - IP or "domain.com."?)
    - What should be added or removed in the /etc/localdomains and /etc/remotedomains? On which server?
    - What is an exim smart router? And how do you use/configure this?
    - When to use /etc/secondarymx?

    I really hope someone could make a howto in clear words.

  2. #2
    Member
    Join Date
    Sep 2004
    Location
    Hokksund, Norway
    Posts
    40

    Default

    Well, I think I found the easy way all by myself :

    The webserver:
    - Login to the server WHM as the root user and go to DNS Functions and Edit DNS Zone.
    - Select the domain you want to edit, or type it in, and click on Edit.
    - Replace the domain.com. in the MX setting with mail.domain.com. (be sure there is an dot (.) after mail.domain.com.).
    - Change "mail" from CNAME to A record - and remove domain.com. and replace it with the IP address.
    - Save the changes

    - Login to your server by shell as the root user. Edit the /etc/localdomains file
    # pico /etc/localdomains
    Find the domain you modified (ctrl+w) and delete the entry for the domain.
    Save the changes to the file (ctrl+x then Y).

    - Edit the /etc/remotedomains file (that tells Exim to not handle mail for this domain).
    pico /etc/remotedomains
    Add the domain name to this file, save the changes (ctrl+x then Y).

    On the remote server:
    Simply install the domain as usual (as a email hosting package) - but be sure the server is not in a DNS cluster with the other (web-)server.

  3. #3
    Member
    Join Date
    Apr 2005
    Posts
    9

    Default

    Is there a way for a reseller to do this via WHM?

    Alot of my domains host their own email servers.

  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

    No, it can only be done from the root account.
    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

Similar Threads & Tags
Similar threads

  1. How can I use remote mail server and mysql server with cpanel?
    By Seyhun in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-29-2011, 02:48 PM
  2. remote access, php error handling status?
    By adamint in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-15-2006, 03:34 PM
  3. incoming email procedure (or: mail handling route/path)
    By mikesmithfl in forum E-mail Discussions
    Replies: 3
    Last Post: 04-05-2006, 11:40 AM
  4. WHM - php error handling of remote access functions
    By jimcarter in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 09-24-2002, 02:18 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube