Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Aug 2003
    Posts
    6

    Default How to use Backup Mail Exchanger feature

    I notice that when setting up an account in WHM you now have the following options:

    Local Mail Exchanger
    Backup Mail Exchanger
    Remote Mail Exchanger

    I want to be able to offer my customers a backup email service if the primary mail server is down, but not sure exactly how this feature works.

    This is how I presume it works:

    I create a main cpanel account on one server which has the customers primary email accounts & web site etc.

    I create a secondary account on a 2nd server which is for email backup purposes.

    For the DNS zone (which is on DNSMadeEasy) I create two A records for the email: mail1.domain.com pointing to the IP address on the main account & mail2.domain.com pointing to the IP address on the secondary account.

    I also create 2 mx records: mail1.domain.com with a priority of say 10 & mail2.domain.com with a priority of say 30.

    So if the primary email is down for any reason the email should get sent to the secondary cpanel account.

    What I don't know is this:

    Where do the emails get stored on the secondary account? Do I need to setup any email accounts on the secondary account, or setup a default email account on the secondary account?

    Will emails automatically be forwarded to the primary account when the primary server is back online?

    Anything else I need to do for this to work properly?

    As I will be using DNS made easy for the DNS, can I safely delete the DNS zones for the account from the primary & secondary servers? (the Backup Mail Exchanger feature appears to ahve something to do with the DNS in cpanel, but not sure what as the zone looks exactly the same).

  2. #2
    Member
    Join Date
    Aug 2003
    Posts
    6

    Default

    Dos'nt anybody know the answer to this?

  3. #3
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Lightbulb

    Quote Originally Posted by sohot View Post
    Where do the emails get stored on the secondary account?
    Depending on the configuration, the e-mails may only be stored in the secondary's server's mail queue until the primary server is restored to normal functionality.

    Quote Originally Posted by sohot View Post
    Do I need to setup any email accounts on the secondary account, or setup a default email account on the secondary account?
    There is no need to create a duplicate account on the secondary server.

    Quote Originally Posted by sohot View Post
    Will emails automatically be forwarded to the primary account when the primary server is back online?
    Assuming e-mails are only held in the secondary server's mail queue, once the primary server is online it will eventually receive the missed e-mails within a nominal time frame, delayed only by the interval at which your Exim configuration reattempts delivery of queued messages, and the correct recipients should then receive the messages.

    Quote Originally Posted by sohot View Post
    Anything else I need to do for this to work properly?
    If your secondary server is cPanel/WHM-based, you can use the following file to manage a list of which domains the system will serves as a secondary mail exchanger (MX) for:
    /etc/secondarymx

    Quote Originally Posted by sohot View Post
    As I will be using DNS made easy for the DNS, can I safely delete the DNS zones for the account from the primary & secondary servers? (the Backup Mail Exchanger feature appears to ahve something to do with the DNS in cpanel, but not sure what as the zone looks exactly the same).
    I would not remove any DNS zones for active accounts; I would, however, retain them for reference and future comparison as this may prove useful in certain situations.

    We have additional documentation for this feature available at the following link:
    MXEntry < AllDocumentation/CpanelDocs < TWiki

  4. #4
    Registered User
    Join Date
    Mar 2010
    Posts
    1

    Default

    Ok, but what I would like to know is, and no one seems to mention this, What if I wanted the emails which were sent to the secondary/backup mailserver to be forwarded to actual mailboxes instead of just sitting in the spool for later re-delivery to primary mailserver? The benefit is that users would be able to access their emails sooner. How would one achieve this via cPanel/WHM?

    Thanks

  5. #5
    Registered User
    Join Date
    Jun 2006
    Posts
    1

    Default

    @kat101 I don't know if you've figured this out yet given this is an older thread, but I looked into this same situation a while back. You'd need to be running a more sophisticated solution than just selecting the Backup Mail Server option to have users able to check their mail on the secondary server. The purpose of the Backup Mail setting is mostly so emails don't bounce back to the sender when the primary mail server is offline.

    You'd either have to set up a sync between the two servers to keep each user's mailbox account in sync so they can access either when the other is down, or look into a service (or third server) that worked like an Exchange server: it would check your mail based on whichever server is available, and you'd get it from there, not directly from the mail1 or mail2 servers.

    hope that helps.

Similar Threads & Tags
Similar threads

  1. Filed with Developers Allow DNSONLY to serve as a Backup/Secondary Mail Exchanger [Case 54563]
    By dwykofka in forum Feature Requests for cPanel/WHM
    Replies: 52
    Last Post: 03-07-2012, 09:00 AM
  2. Backup Mail Exchanger
    By vixon in forum New User Questions
    Replies: 1
    Last Post: 05-13-2011, 03:32 AM
  3. Backup Mail Exchanger
    By MantisComp in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-12-2010, 05:25 AM
  4. Backup Mail Exchanger
    By mahmoudh in forum E-mail Discussions
    Replies: 0
    Last Post: 03-09-2010, 12:27 AM
  5. Filed with Developers mail exchanger: auto, local, backup, remote [Case 56117]
    By AlexAT in forum Feature Requests for cPanel/WHM
    Replies: 1
    Last Post: 02-22-2010, 12:26 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube