[Webinar] Streamline your web hosting managementRegister Today


How can I  limit the servers that can relay email from Exchange 2013 to an outside target when using a Load Balancer?

Posted on 2014-09-14
Medium Priority
Last Modified: 2014-10-02
I am using Exchange2013 CU 5 on Win 2012 R2. I want to be able to control servers that can relay email to outside recipients. Before we had a Load Balancer, I would just add the IP of the servers to relay email to the Receive Connector and set the Authentication to Externally Secure. But we have purchased a Kemp VM Load Balancer. My testing found that, while keeping it Externally Secure,  I had to add the IP of the Load Balancer into the Receive Connector or I could not relay email to outside from any of my servers. Further testing found all I needed in the receive connector was the External Secure and the one IP of the Load Balancer. This is easier but I can no longer limit the servers that can relay SMTP email to an outside recipient.

Can anyone tell me how to limit servers that can relay SMTP email to outside when using a Load Balancer?

Thank you,
Question by:swfwmd2
  • 3
  • 2
LVL 63

Expert Comment

by:Simon Butler (Sembee)
ID: 40322555
You need to reconfigure the load balancer so it is transparent for SMTP traffic. That way Exchange will see the true IP address of the remote server. I haven't got my Kemp running at the moment so cannot look up the command... but someone else has blogged what needs to be done.



Expert Comment

by:Zacharia Kurian
ID: 40322596
You better disable SNAT in Kems and set default gateway on all Exchange Hub Transport Servers to Kemps.

This is the only option you can do and I don't think any other option would work for you.

Author Comment

ID: 40323814
Thank you Simon for the reference document (Zacharia missed the step to check the Transparancy box on the LB configuration)

While I understand the reason for checking the Transparency box, I am not as clear about unchecking the Server NAT box.  Can you explain why this was checked in the first place (what benefit did it provide), why it needs to be unchecked for my purpose and what I will not be able to do with it unchecked?

As far as the redirecting the Default Gateway of the Real servers – with only two Exchange servers in this site with the Load Balancer (we have one other in another site for Backups and DR), is there any big benefit of setting this gateway to the Load Balancer or big problem if we do not?

Thank you,
Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!


Author Comment

ID: 40326474
Disregad my last update -

Here is my current status:

I still cannot relay from the Load Balancer without putting in the IP of the Virtual Server in the Exchange receive connector.

I have done the following:
•      Checked to Transparency box on the LB

•      Unchecked the Server NAT

•      Added the Load Balancer’s Interface Address as the Default gateway on the Exchange servers

I have tested the Receive connector by successfully connecting directly to the Exchange server and able to relay but when I connect to the Load Balancer virtual IP for SMTP I cannot relay (I can relay from here if I add LB IP to Receive connector)
I can successfully send email to my inside address and when I look at the header of the email I see the IP of the LB SMTP virtual service and do not see the IP of the originating server.

Any suggestions?
LVL 63

Accepted Solution

Simon Butler (Sembee) earned 2000 total points
ID: 40332918
The problem must still be with the KEMPs somewhere. The default gateway setting shouldn't have caused any problems. Have you spoken to KEMP support?


Author Comment

ID: 40333027
The Kemp Tech Support told me:
"Transparency will not work properly for clients that are on the same subnet as the virutal service, and real server. The load balancer will selectively disable transparency for those connections as the gateway of the server will not be taken into account, it will try to directly return traffic to the other machine on its local subnet."

They have another option (which I am in process of testing)-

"The only way for these connections to be transparent is to use a layer 4 service and configure for Direct Server Return (DSR). This involves creating a loopback adapter on the server so it can respond directly to the client using the VS ip address. Documentation on how to do this can be found here https://support.kemptechnologies.com/hc/en-us/articles/202380328-Configuring-Real-Servers-for-Direct-Server-Return-DSR-"

Does anyone see any issues with this course of action?

Featured Post

Making Bulk Changes to Active Directory

Watch this video to see how easy it is to make mass changes to Active Directory from an external text file without using complicated scripts.

Question has a verified solution.

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

Exchange administrators are always vigilant about Exchange crashes and disasters that are possible any time. It is quite essential to identify the symptoms of a possible Exchange issue and be prepared with a proper recovery plan. There are multiple…
Upgrading from older Exchange server to the latest Exchange server can be tiresome, error-prone and risky, without being a seasoned exchange server administrators. It can become even problematic if you're an organization that runs on tight timeline…
To show how to generate a certificate request in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.:  First we need to log into the Exchange Admin Center. Navigate to the Servers >> Certificates…
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…
Suggested Courses

590 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