How to Configure Exchange Online Protection on Exchange On-Premise server
**How to Set EOP on Exchange On-Premise server**
Login to Office365 portal(portal.office.com):
Click on Admin centers and Exchange online:
Click on “mail flow” button then go to connectors then click on + button:
In From select “Office365” and in to “Your Organization’s email server”:
Put the N*ame** for the connector:
Now Select the M*iddle** option:
In this page click on "*+"** button:
Put the FQDN:
At this page select “Any digital certificate…….”:
Click N*ext:**
Click on "*+"** button in this page:
Put any email address for test:
Now click on Validate button:
Now click on S*ave** button:
Now again navigate to Office365 admin portal and click on S*etup---->Domain:**
Click on the D*efault** domain:
Obtain the MX Record and put this in Domain Hosting Website(for example godaday.com):
Now again go to Exchange Online and in Connectors add new in from field select*” Your Organization’s email server”** and in to “Office365”:
Put the N*ame** for the connector:
Put the Domain name here:
Click on Save:
Now navigate to your On-Premise Exchange server and go to Exchange Management shell:
Run the following Commands:
New-SendConnector -Name "*My company to Office 365**" -AddressSpaces * -CloudServicesMailEnabled $true -Fqdn mail.contoso.com -RequireTLS $true -DNSRoutingEnabled $false -SmartHosts contoso-com.mail.protection.outlook.com -TlsAuthLevel CertificateValidation
#Put your details in Name"xyz" , FQDN"abc" and replace contoso with you domain
New-TransportRule "JunkContentFilteredMail" -HeaderContainsMessageHeader "X-Forefront-Antispam-Report" -HeaderContainsWords "SFV:SPM" -SetSCL 6
Updated on: 31/01/2023
Thank you!