[AusNOG] outlook.com

Ross Wheeler ausnog at rossw.net
Thu Oct 8 15:57:23 EST 2015


> Could you use the IP ranges listed in the SPF records for
> outlook.com/hotmail.com?

Sheez mate, anyone can do it the easy way :)

Seriously, thanks for the suggestion.

For posterity and anyone else who might want it... incomplete, rough as guts, 
but does well enough for me:  (ok, it's not one line...)

    #! /usr/local/bin/bash

    # Find sending addresses from SPF for given domain as $1
    for f in `dig +nocmd $1 txt | sed -n '/v=spf/ {s/.*v=spf//; p;}'`
    do
         case $f in
                 include:*) $0 ${f:8} ;;
                 ip4:*) echo ${f:4};;
         esac
    done



./spflookup.sh outlook.com|sort -n
23.103.128.0/19
23.103.191.0/24
23.103.198.0/23
23.103.200.0/21
23.103.208.0/21
64.4.22.64/26
65.54.121.123/29
65.54.190.0/24
65.54.241.0/24
65.54.51.64/26
65.54.61.64/26
65.55.111.0/24
65.55.113.64/26
65.55.116.0/25
65.55.126.0/25
65.55.169.0/24
65.55.174.0/25
65.55.178.129/27
65.55.234.192/26
65.55.238.129/26
65.55.33.70/28
65.55.34.0/24
65.55.52.224/27
65.55.78.128/25
65.55.81.53/28
65.55.88.0/24
65.55.90.0/24
65.55.94.0/25
70.37.151.128/25
94.245.112.0/27
94.245.112.10/31
104.47.0.0/17
111.221.112.0/21
111.221.23.128/25
111.221.26.0/27
111.221.66.0/25
111.221.69.128/25
134.170.132.0/24
134.170.140.0/24
157.55.0.192/26
157.55.1.128/26
157.55.11.0/25
157.55.133.0/25
157.55.157.128/25
157.55.158.0/23
157.55.2.0/25
157.55.225.0/25
157.55.234.0/24
157.55.49.0/25
157.55.61.0/24
157.55.9.128/25
157.56.110.0/23
157.56.112.0/24
157.56.116.0/25
157.56.120.0/25
157.56.232.0/21
157.56.24.0/25
157.56.240.0/20
157.56.248.0/21
157.56.87.192/26
207.46.100.0/24
207.46.101.128/26
207.46.108.0/25
207.46.116.135/29
207.46.117.0/24
207.46.132.129/27
207.46.163.0/24
207.46.198.0/25
207.46.200.0/27
207.46.222.193/26
207.46.4.128/25
207.46.50.221/26
207.46.50.224
207.46.51.64/26
207.46.58.128/25
207.68.169.173/30
207.68.176.1/26
207.68.176.97/27
213.199.154.0/24
213.199.161.129/27
213.199.177.0/26
213.199.180.0/24
216.32.180.0/23



More information about the AusNOG mailing list