Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Member
    Join Date
    Mar 2002
    Posts
    442

    Default All parked domains require zone file edit if primary domain has external mail server

    Let's say I have a primary domain, and 5 parked domains, and that my hosting server is authoritative for POP mail. I can use email domain forwarding in cPanel to ensure that any email sent to one of the parked domains is automatically redirected to the corresponding primary domain email address, e.g.

    bob@parkeddomainone.com > bob@primarydomain.com

    This is great because it means I don't have to create forwarders individually for each parked domain email address that I want forwarded to a primary domain email address.

    *BUT* what happens when the owners of the primary domain get themselves their own mail (e.g. Exchange) server?

    Well, firstly we have to modify the MX record(s) in the DNS zone file of the primary domain to point mail to the new mail server's IP address. All good, no problem. But what happens to all those lovely email domain forwarding instructions? Answer: they're neutered (rendered useless). My understanding is that, if a hosting account has an external mail server, then *all* cPanel functions relating to mail are rendered inoperable. (Actually - all the functionality remains, but settings/changes do not do anything - perhaps cPanel should put warning signs to this effect so that people don't beat themselves up wondering why it's not working?)

    So how do we get email sent to the parked domains to get to the external mail server? My understanding is that the only way to achieve this is to individually edit the MX records in all of the DNS zone files of the parked domains to point to the external mail server. Which is a bit of a pain! Does anyone know a better/quicker/easier way?
    • Web Design Perth .:. Itomic Business Website Solutions of Perth, Western Australia

  2. #2
    Member
    Join Date
    Dec 2007
    Posts
    102

    Default

    ... deleted
    Last edited by betoranaldi; 01-04-2008 at 08:20 AM.

  3. #3
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,093
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    You're correct, and it is a pain, but you only have to do it once. What I do is set up the A record for the exchange server in their main account (eg: mx.domain.com, or exchange.domain.com) and then use that as the MX server everywhere else. You should actually use the WHM Edit MX functionality if you're not sure what you're doing as there are two steps which it takes care of.

    The first step is to edit the zone file correctly. Just make sure the A record for the exchange server is NOT "mail.domain.com" as that makes it less obvious to support people that the domain has it's own mail server.

    The second step is to remove the line(s) for the domain(s) in question from the /etc/localdomains file and insert those line(s) into /etc/remotedomains. This is critical as localdomains determines what domains Exim will try and process locally.

Similar Threads & Tags
Similar threads

  1. Add unassigned domains zone to other server without manually edit files
    By iri.pl in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 08-17-2011, 03:14 AM
  2. Edit DNS zone to keep email but use external webserver?
    By Diniel in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-22-2010, 04:07 AM
  3. Edit Zone file [mail and web]
    By kosbab in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-09-2005, 11:51 PM
  4. Edit a DNS Zone to point ALL mail to Exchange server?
    By ThunderHostingDotCom in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 11-29-2003, 03:05 PM
  5. Reseller Zone Edit for Parked/Pointed Domains
    By tabernack in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 11-09-2001, 09:37 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube