Solved

Receive connector to only accept mail from Office 365

Posted on 2016-11-22
3
39 Views
Last Modified: 2016-11-25
Hello Experts,

I have a non-profit customer that I'm currently setting up a hybrid configuration for. We recently got them set up with a new server with Exchange 2016. They used Office 365 for their second location that is now combined with the first and on their local domain. During the first part of the migration I changed over their MX records to look directly at their external IP for a standard configuration, but the amount of spam they were getting was ridiculous.  So, last night I changed their MX record to look to Office 365 (they don't mind still paying their minuscule non-profit pricing for O365 just for the spam filtering) and configured the connectors on O365 to forward the mail onto the on-prem server. That all works fine, but they are still receiving a large amount of spam. I'm not seeing any of those messages being passed through O365, so i'm assuming it's all being sent to their outside IP address and the Exchange server is still delivering them. My question is how do I set up the receive connector so that it only accepts outside mail from O365. I've set up internal spam filters before where you just have it only accept mail from a single IP, but Microsoft has so many IPs, it doesn't look like I can do that. Any suggestions would be great!

Best,
Taylor
0
Comment
Question by:Taylor
3 Comments
 
LVL 18

Accepted Solution

by:
Peter Hutchison earned 350 total points
ID: 41899121
Yes, the only way to do it is to configure your receive connectors with a list of IPs.
addresses or IP address ranges on the network settings of the receive connector. Microsoft have published a complete list here:

Exchange Online Protection IP addresses:
https://technet.microsoft.com/en-us/library/dn163583(v=exchg.150).aspx
2
 
LVL 36

Assisted Solution

by:Jian An Lim
Jian An Lim earned 150 total points
ID: 41899864
OR logon to exchange online and run the following command

Get-HybridMailflowDatacenterIPs | select DatacenterIPs

then you can use this to put on your receive connector easily
1
 

Author Comment

by:Taylor
ID: 41899871
Great! Thanks guys. I'll give this a try and let you know. Sorry I didn't respond sooner Peter, I never received a notification for you comment.
0

Featured Post

Shouldn't all users have the same email signature?

You wouldn't let your users design their own business cards, would you? So, why do you let them design their own email signatures? Think of the damage they could be doing to your brand reputation! Choose the easy way to manage set up and add email signatures for all users.

Join & Write a Comment

Utilizing an array to gracefully append to a list of EmailAddresses
Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
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 is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

744 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now