Solved

Receive connector to only accept mail from Office 365

Posted on 2016-11-22
3
57 Views
Last Modified: 2017-01-17
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 19

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Veeam Backup & Replication has added a new integration – Veeam Backup for Microsoft Office 365.  In this blog, we will discuss how you can benefit from Office 365 email backup with the Veeam’s new product and try to shed some light on the needs and …
Read this checklist to learn more about the 15 things you should never include in an email signature.
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

920 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

13 Experts available now in Live!

Get 1:1 Help Now