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.

Secondary/Backup MX

Discussion in 'General Discussion' started by projectandrew, Jan 13, 2004.

  1. projectandrew

    projectandrew Well-Known Member

    Joined:
    Aug 27, 2003
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    United Kingdom
    I'd like to use my cpanel server as a secondary/backup mx server for one of my domains - i.e. if the primary server fails, my cpanel server will accept and hold mail for the domain until the primary server comes back online, and then forward the mail on.

    I know how to do this using sendmail, but I am not sure on an exim configuration.

    Can anyone help?
     
    #1 projectandrew, Jan 13, 2004
    Last edited: May 20, 2004
  2. projectandrew

    projectandrew Well-Known Member

    Joined:
    Aug 27, 2003
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    United Kingdom
    Ok, I've found part of the answer:

    /etc/localdomains
    /etc/remotedomains
    /etc/relayhosts
    /etc/secondarymx

    Now, localdomains & remotedomains I've read about on the forums when you want to host a site, but email is hosted elsewhere.

    Has anyone used the other two files relayhosts and secondartmx? Is it as simple as putting domain names in these files?

    I've also read about the exim option 'manualroute' which some people use to forward mail - which is the best route to use?
     
    #2 projectandrew, Jan 13, 2004
    Last edited: May 20, 2004
  3. projectandrew

    projectandrew Well-Known Member

    Joined:
    Aug 27, 2003
    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    United Kingdom
    /etc/relayhosts appears to be a list of users who have temporarily been allowed to relay mail, as they've just checked their mail via pop3 etc.

    I can only assume to use /etc/secondarymx?
     
    #3 projectandrew, Jan 13, 2004
    Last edited: May 20, 2004
  4. jnagro

    jnagro Active Member

    Joined:
    Jun 28, 2003
    Messages:
    33
    Likes Received:
    0
    Trophy Points:
    6
    put any domains you want to have a backup for in /etc/secondarymx... keep in mind its important to update *every* dns record to have the main MX entry and the backup one... make the level higher, like the original is 0 (or you could make it 10) and make the backup 20... contact me if you need help (email)...
     
Loading...

Share This Page