Forum Discussion

esardinha's avatar
esardinha
Copper Contributor
Oct 16, 2019

Imap in O365

Hello, 

 

We're currently in hybrid mode with O365 and AD connect, I have a question regarding imap with O365.  If we have an application on premise that will need to use imap to send/receive email, I would think we'll need to open those ports to/from O365.  Which direction would imap use both 993 and 587?  Is that only incoming and outgoing from o365 or is that incoming to on-premise?

 

Thanks all,

  • 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

Resources