Address range to permit imap/993 to

I have a client that wants to run imap to
The problem I am running into is that when I look at firewall logs I
see his traffic going to addresses not seen in the nslookup of So my question: what is the range of addresses
required to permit imap to
amigan_99Network EngineerAsked:
Who is Participating?
Vasil Michev (MVP)Commented:
The only list Microsoft publishes is here:

It's not "just IMAP" you need anyway, at the very least you need authentication as well. Make sure to allow *all* the URLs and IP ranges listed there, unless you want to play the exclusion game on a per-entry basis.

In addition, make sure to add the EOP IP ranges as well:
One note:
To check IMAP you just need IMAP port open which is 993. Authentication is done on that port only (proxy authentication)
Find details here
IMAP/POP clients use basic authentication. For AD FS, what basic authentication have in common is that Exchange Online does the authentication with AD FS on behalf of the client, which is also known as proxy authentication.

More specifically, the client sends the Basic authentication credentials to exchange Online over SSL/TLS and Exchange Online sends the authentication credentials to Azure AD (Office 365 Identity Platform) using something called proxy authentication. Azure AD returns the respective endpoint for the on-premise AD FS for Exchange Online. Then Exchange Online contacts the on-premise AD FS server for authentication, which afterwards authenticate with Active Directory and is provided with a logon token containing the necessary user claims. Then AD FS server sends this token back to Exchange Online, which again sends it to Azure AD. Then Azure AD returns another token to Exchange Online which can be used to authenticate the client.
amigan_99Network EngineerAuthor Commented:
Thanks for the replies! I was mostly looking for the IP blocks. But thanks for the confirmation on the 993 port.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.