Solved

Receive connector to only accept mail from Office 365

Posted on 2016-11-22
3
85 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Find out what you should include to make the best professional email signature for your organization.
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
Microsoft Office Picture Manager has a Picture Shortcuts pane that shows a list with the Recently Browsed folders. While creating my video Micro Tutorial here at Experts Exchange showing How to Install Microsoft Office Picture Manager in Office 2013…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

820 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