We help IT Professionals succeed at work.

Exchange 2013 restrict incoming messages to some users

easyworks asked
Last Modified: 2017-03-31
I am running server 2012R2 with Exchange 2013 SP1 CU12 (15.0.1178.4).

I have 2x domains lets say Company123.com and CompanyABC.com. I would like Company123.com to receive email from all sources while limiting CompanyABC.com to certain external IP addresses.

Right now I have everyone in 1 database, but I can move all the users from Company123.com into DB1 and all the users from CompanyABC.com into DB2 if that would help.
Watch Question

Datacenter platform engineer Lindows
Unlock this solution and get a sample of our free trial.
(No credit card required)

Well, you could configure Receive connectors for abc.com to only receive email from certain IP addresses.

This doesn't seem like a common thing to do - what exactly are you trying to achieve?


I think you are right I just need to put everyone in the spam filter and make sure that the only IP the server receives is from the spam filter and just bypass the spam filter for Company123.com... I wasn't sure there was something easier to do than this

I am not sure how i would configure 2 receive connectors for only so that 1 database or 1 set of users used 1 receive connector over another.

A second IP address is how I would do it.  MX record for 123.com's email domain AND a separate MX record for abc.com's email domain, using 2 different IP addresses.  Configure your receive connectors appropriately.
Patrick BogersDatacenter platform engineer Lindows

@easyworks, check! Thats right.
@Kaffiend, i cannot get my head around your suggestion, another ip? Makes no sense to me.
This doesn't seem like a common thing to do - what exactly are you trying to achieve?

It is good common thinking to approach mail recieving like this as there are numerous spammers that fire spam and malware directly to your public mail server, you want to block this.


We only have 1 mail server.

I'm just going to setup everyone on the filter only set to receive from that external IP address. Just wanted to make sure there wasn't something easier that I could do.


2 internet-reachable IP addresses
One of them, MX record for abc.com, the other, MX for 123.com
Firewall to send traffic to server (which either has 2 nic's, or 1 nic with 2 different IP addresses)
2 (at least) external receive connectors, each responding to a different IP

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.