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.

SMTP Backup - Problems with additional domains

Discussion in 'E-mail Discussions' started by DReade83, Nov 26, 2006.

  1. DReade83

    DReade83 Well-Known Member

    Joined:
    Oct 20, 2006
    Messages:
    196
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Cheshire, UK
    Hello,

    I have a dedicated server running cPanel 10.9.0-R79.

    The server is hosting 2 domains. One of the domains is set out as follows:

    mail.domain1. > A > {Exchange Server IP}
    mailbackup.domain1. > A > {Dedicated Server IP}
    domain1. > MX > 10 > mail.domain1.
    domain1. > MX > 20 > mailbackup.domain1.

    In addition I've removed "domain1" from "/etc/localdomains" and added it into both "/etc/remotedomains" and "/etc/secondarymx". Exim's config has been setup accordingly in order to support the secondarymx file.

    The idea here is that should my Exchange Server be unavailable for any reason, incoming emails will be stored on "mailbackup.domain1" instead. The server will then "ping" the Exchange server every few seconds/minutes/hours and, once it successfully pings the server, push all stored emails.

    Currently this works a treat (thanks rikgarner).

    However, I'd now like to setup the second domain so that it follows the same sort of configuration. I've setup the DNS zone for "domain2" as follows:

    mail.domain2. > A > {Exchange Server IP}
    domain2. > MX > 10 > mail.domain2.
    domain2. > MX > 20 > mailbackup.domain1.

    I've then removed "domain2" from "/etc/localdomains" but only added it into "/etc/remotedomains". I'm sticking with "mailbackup.domain1" for domain2's secondary MX record, so technically there's no need to add domain2 into the secondarymx file (please correct me if I'm wrong).

    The Exim Service has been restarted.

    Note that domain1's email config works no problem. However according to DNSReport.com, there's a problem when attempting to send an email to "postmaster@domain2", as follows:

    mailbackup.domain1's postmaster response:
    >>> RCPT TO:<postmaster@domain2>
    <<< 550-test.dnsstuff.com (test.DNSreport.com) [66.36.241.109] is currently not 550-permitted to relay through this server. Perhaps you have not logged into 550-the pop/imap server in the last 30 minutes or do not have SMTP 550 Authentication turned on in your email client.

    What I expect to happen here is should domain2's Exchange server be unavailable, incoming emails will be stored on mailbackup.domain1 where the server will then ping domain2's Exchange server and, as soon as it's back up, push all stored emails.

    I would seriously appreciate any help on this matter as both domains are live and, should domain2's Exchange server become unavailable, all incoming emails will be bounced!

    Thanks in advance,

    Dave
     
  2. nickp666

    nickp666 Well-Known Member

    Joined:
    Jan 28, 2005
    Messages:
    770
    Likes Received:
    2
    Trophy Points:
    18
    Location:
    /dev/null
    you need to add the domain to /etc/secondarymx as otherwise exim wont accept mail for it
     
  3. DReade83

    DReade83 Well-Known Member

    Joined:
    Oct 20, 2006
    Messages:
    196
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Cheshire, UK
    Thanks, I've done that, but with the DNS only being updated 18 hours ago, I can't test this properly using DNSReport.com.

    I'll let you know whether it's worked in a few days or so.
     
  4. DReade83

    DReade83 Well-Known Member

    Joined:
    Oct 20, 2006
    Messages:
    196
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Cheshire, UK
    Thanks mate, worked a treat, much appreciated! :D
     
Loading...

Share This Page