How to set multiple outbound relay hosts for failover

Posted on 2005-04-27
Medium Priority
Last Modified: 2013-12-18
We have set up 2 Mailsweeper server as the mail gateway for inbound and outbound internet mails. Our Domino SMTP server is suppose to route Outbound mails via these servers as a relay host.  We can set both mailsweeper server for failover for inbound internet mails via MX preferences. Can we do the same for Outbound mails?  But there is only one value that we can put in the internet outbound relay host when we have 2 relay hosts, so how do we make it to dynamically fail over if one of the mailsweeper mail gateway is down?
Question by:kamar
  • 3
  • 2
LVL 31

Expert Comment

ID: 13878194
No, Domino does not use MX lookups for outbound relay resolution, so the best you can get is DNS round robin.  To do what you want, you would need a hardware load balancer, which will provide a single VIP for Domino to relay to outbound, and the load balancer will try to hit each of the two real Mailsweeper IP addresses (it sort of works like NAT, excpet that both "hidden" addresses can receive the traffic).

As a cheaper, manual alternative, assign a special FQHN for outbound relay, and manually change DNS when needed.  Or, instead of changing DNS when needed, you can pull the plug on one Mailsweeper box, and set the other to use both IP addresses during a afilure.  (Don't forget to clear ARP cache on your router when you do this).

Author Comment

ID: 13882606
Someone sent a tip that we can actually specify multiple relay hosts in the configuration document


Can anyone confirm that this is workable?

Also, could you give me a bit more details on setting up the hardware load balance?
LVL 31

Expert Comment

ID: 13932284
Yes, that does provide load balancing, but I have never been able to verify whether it provides failover.

Author Comment

ID: 13933376
I managed to set up the multiple relay in the configuration document and tested. Two IPs separated by comma.  It does not provide load balance such that outbound smtp mails will always be sent to the first host listed in the field.  The second is only invoked if the first fails to respond.
LVL 31

Accepted Solution

qwaletee earned 1000 total points
ID: 13974907
You could try to load balance by assigning a round-robin FQHN in DNS, followed by the actual IPs.  It would try the FQHN first, which round-robins to load balance.

Say you have and
Set up smtp.kamar with two A records pointing to those two addresses
Set up the relay to be: smtp.kamar,,

Domino server should try the FQHN first every time.  Since it resolves to altrenating addresses, it will alternate servers (unless the Domino server caches the lookup).

If goes down, one of two things will happen on every send:
    kamar.smtp will resolve to, which is down; Domino tries it and fails.
    Domino next tries (second relay listed), which is identical, and fails.
    Domino tries a third time with the third entry, and succeeds
    kamar.smtp will resolve to, which is up; Domino tries it first and succeeds

If is down, two similar possibilities occur, except that Domino succeeds on the first or second try instead of the first or third try (nevause the second try is the server that is up, whereas above, the second try is the server that is down).  So, always list your most reliable server second.

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
Notes Document Link used by IBM Notes is a link file which aids in the sharing of links to documents in email and webpages. The posts describe the importance and steps to create a Lotus Notes NDL file in brief.
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
Screencast - Getting to Know the Pipeline
Suggested Courses
Course of the Month16 days, 19 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question