Forum Discussion
Imap in O365
It is from the application server to Office 365 that you have to open TCP-993 (for IMAP) and TCP-587 for SMTP. So if you have a firewall blocking these ports today you have to allow it outbound for that application server on-premises.
There will be no inbound traffic initiated from Exchange Online to your application.
If you don't want to open these port to all destinations on Internet you have a list of IP addresses used by Exchange Online here:
https://docs.microsoft.com/en-us/office365/enterprise/urls-and-ip-address-ranges
Perfect, that is the answer I was looking for. It would be outbound from on-premise to exchange online for both imap and smtp. Any documentation that would state this that you know of? Also if those ip address ranges for o365 would change at all?
Thanks!
- LinusCansbyOct 17, 2019MVP
esardinha You can find information about ports used here:
Yes, the addresses changes sometimes but not that often. There is an RSS feed on the page it sent earlier that you can use to keep updated. Some firewalls can connect directly to this feed and automatic allow communication to these addresses when they are updated.