Share via


smtp.office365.com 587 ips

Question

Wednesday, February 7, 2018 11:33 AM

Hello,

Any of you know the smtp.office365.com port 587 ip addresses?. I would like exclude them in my firewall. I found this article https://technet.microsoft.com/library/dn163583(v=exchg.150).aspx but not 587 ip addesses. Thank you

outlook-emeacenter3.office365.com

outlook-emeawest3.office365.com

.

etc

Roberto

All replies (11)

Wednesday, February 7, 2018 3:11 PM âś…Answered

Try these:

40.101.54.162
40.101.51.194
40.101.46.210
40.101.124.210
40.101.30.226
40.101.41.162
40.101.55.194
40.101.65.146
40.101.121.34
40.101.124.18
40.101.60.18
40.101.42.82
40.101.65.162
40.101.50.162
40.101.69.18
40.101.60.226
40.101.70.194
40.101.125.34

Or this:

40.64.0.0/10

Alternatively, if your firewall supports FQDN rules you can allow it based off the domain name.


Wednesday, February 7, 2018 11:36 AM

Hi,

have a look at this https://support.office.com/en-us/article/office-365-urls-and-ip-address-ranges-8548a211-3fe7-47cb-abb1-355ea5aa88a2


Wednesday, February 7, 2018 12:15 PM

Thank you, but those aren't the 587 port addresses.


Wednesday, February 7, 2018 12:25 PM

You Have to exclude Exchange online Protection IP also here,

https://technet.microsoft.com/en-us/library/dn163583%28v=exchg.150%29.aspx?f=255&MSPPError=-2147217396

All O365 related IPs and Url list here,

https://support.office.com/en-us/article/office-365-urls-and-ip-address-ranges-8548a211-3fe7-47cb-abb1-355ea5aa88a2

You can refer separately O365 relevant IPs here,

https://support.office.com/en-us/article/office-365-urls-and-ip-address-ranges-8548a211-3fe7-47cb-abb1-355ea5aa88a2#bkmk_portal_ip

https://support.office.com/en-us/article/office-365-urls-and-ip-address-ranges-8548a211-3fe7-47cb-abb1-355ea5aa88a2#bkmk_exo_ip


Wednesday, February 7, 2018 12:52 PM

In those url lists I don't find the next ones:

https://www.robtex.com/dns-lookup/outlook-emeacenter6.office365.com

https://www.robtex.com/dns-lookup/outlook-emeacenter5.office365.com

https://www.robtex.com/dns-lookup/outlook-emeacenter4.office365.com

https://www.robtex.com/dns-lookup/outlook-emeacenter3.office365.com

Roberto


Wednesday, February 7, 2018 1:04 PM

Where did you get your domain names from?

I can't find them in any official O365 documentations.


Wednesday, February 7, 2018 1:10 PM

Unless those are mentioned as 587,

These are the recommend O365 Ips and Urls,

After excluding these, you can fulfill what you want


Wednesday, February 7, 2018 1:22 PM

I get them from packet monitor in my firewall when I send a email using a desktop application(no Outlook) and ping to smtp.office365.com and this article: http://download.priasoft.com/office365/Office365_EndPoints.html

Roberto


Wednesday, February 7, 2018 1:49 PM

I might have found it:

https://support.office.com/en-us/article/office-365-urls-and-ip-address-ranges-8548a211-3fe7-47cb-abb1-355ea5aa88a2?ui=en-US&rs=en-US&ad=US

https://support.office.com/en-us/article/office-365-urls-and-ip-address-ranges-8548a211-3fe7-47cb-abb1-355ea5aa88a2?ui=en-US&rs=en-US&ad=US#bkmk_exo_ip

IPv4:

13.107.6.152/31
13.107.9.152/31
13.107.18.10/31
13.107.19.10/31
13.107.128.0/22
23.103.160.0/20
23.103.224.0/19
40.96.0.0/13
40.104.0.0/15
52.96.0.0/14
70.37.151.128/25
111.221.112.0/21
131.253.33.215/32
132.245.0.0/16
134.170.68.0/23
150.171.32.0/22
157.56.96.16/28
157.56.96.224/28
157.56.232.0/21
157.56.240.0/20
191.232.96.0/19
191.234.6.152/32
191.234.140.0/22
191.234.224.0/22
204.79.197.215/32
206.191.224.0/19

IPv6:

2603:1006::/40
2603:1016::/40
2603:1020:0800::/40
2603:1026::/40
2603:1026:0200::/39
2603:1026:0400::/39
2603:1026:0600::/40
2603:1026:0800::/40
2603:1036::/39
2603:1036:0200::/40
2603:1036:0400::/40
2603:1036:0600::/40
2603:1036:0800::/38
2603:1036:0c00::/40
2603:1046::/37
2603:1046:0900::/40
2603:1056::/40
2603:1056:0400::/40
2603:1056:0600::/40
2603:1096::/38
2603:1096:0400::/40
2603:1096:0600::/40
2603:1096:0c00::/40
2603:1096:a00::/39
2603:10a6:0200::/40
2603:10a6:0400::/40
2603:10a6:0600::/40
2603:10a6:0800::/40
2603:10d6:0200::/40
2620:1ec:4::152/128
2620:1ec:4::153/128
2620:1ec:8f0::/46
2620:1ec:900::/46
2620:1ec:a92::152/128
2620:1ec:a92::153/128
2620:1ec:c::10/128
2620:1ec:c::11/128
2620:1ec:d::10/128
2620:1ec:d::11/128
2a01:111:f400::/48




Wednesday, February 7, 2018 2:56 PM

Hello TobyU,

these ips don't appear in your list:

https://www.robtex.com/dns-lookup/outlook-emeacenter6.office365.com

https://www.robtex.com/dns-lookup/outlook-emeacenter5.office365.com

https://www.robtex.com/dns-lookup/outlook-emeacenter4.office365.com

.

.

  • 40.101.7.2
  • 40.101.12.2
  • 40.101.12.50
  • 40.101.30.18
  • 40.101.43.194
  • 40.101.55.162
  • 40.101.80.194
  • 40.101.125.194
  • 40.101.4.2
  • 40.101.7.178
  • 40.101.30.18
  • 40.101.30.226
  • 40.101.50.210
  • 40.101.55.50
  • 40.101.80.2
  • 40.101.80.194
  • 40.101.88.178

I loking for this: http://download.priasoft.com/office365/Office365_EndPoints.html but from Microsoft official source

Roberto


Wednesday, February 7, 2018 4:55 PM

Yes, your list is include here: http://download.priasoft.com/office365/Office365_EndPoints.html

I prefer ip address but yes my firewall supports FQDN.  Finally I think  I'll use FQDN.  Thank you

Roberto