I'm not a representative of Yahoo!, but I suspect this is most 
likely what's going on...

        1. The SPF records are indicating which IP addresses are authorized 
to send eMail for the specific domain(s) that you queried (this is 
normal and expected behaviour throughout the industry).

        2. The web site lists all the IP addresses that they ever intend to 
send eMail from (this is a helpful courtesy, and a good practice).

        My guess is that, internally their systems may only be using some of 
their web-published IP addresses to send eMail from their main domain 
name, while sending from other IP addresses with different domains 
(e.g., a portion of the web-published IP addresses could be dedicated 
for use when handling eMail for their large corporate clients).

        Since both the SPF records and the list on their official web site 
are controlled by them, I would assume that both are accurate and 
authoritative.

        So, if you want to whitelist Yahoo!'s outbound eMail netblocks, then 
the larger list on their web site is probably the best place to start 
(and set up a CRON job to check for changes once a month and notify 
you if the web page does change), and then you can just rely on their 
SPF records for anything else that may come up from time-to-time.  
(This is what I would do.)

P.S.:  I just added a star to your GitHub repository at 
https://www.github.com/edmundlod/postallow and followed you there 
because I believe more projects like this ultimately contribute to 
encouraging others to run their own independent eMail servers.

> Greetings to all!
> 
> Are there any Yahoo mail admins on this list? I have a question about
> Yahoo's (& Verizon & AOL) outbound IP ranges.
> 
> I maintain postallow [0], a tool that builds Postfix Postscreen
> allowlists by walking SPF records. It's a fork of the older Postwhite
> [1]. For Yahoo specifically, it queries _spf1.yahoo.com,
> _spf2.yahoo.com, and _spf3.yahoo.com, and separately scrapes the
> outbound mail server list at
> https://senders.yahooinc.com/outbound-mail-servers/.
> 
> I recently compared the two sources and found a discrepancy:
> 
>  - SPF records: 589 aggregated CIDR entries covering 23,723 IPs
>  - senders.yahooinc.com: 974 entries covering 19,191 IPs
> 
> Every IP on the website is covered by the SPF records - the SPF ranges
> are simply broader, publishing whole /24s and larger, where the website
> lists specific hosts within these ranges. That direction seems
> understandable to a lay-person; SPF records are authoritative and tend
> to be conservative.
> 
> What puzzles me is the reverse: On the website I found four CIDR ranges
> totalling approximately 7,680 IPs, but are absent from the SPF records:
> 
>   34.2.64.0/21
>   34.2.72.0/22
>   34.2.78.0/23
>   34.2.80.0/20
> 
> WHOIS shows these are Yahoo Holdings Inc. addresses, and I found that
> these seem to be provisioned on Google Cloud infrastructure.
> 
> For Postallow I've defaulted to using both sources, so users get the SPF
> baseline plus anything on the website that isn't in SPF. But I'm
> curious:
> 
>  1. Is the omission of the 34.2.x.x ranges from SPF intentional? Should
> it be left out, since it is not in the SPF records?
>  2. Is the website considered authoritative for allowlisting purposes,
> or is SPF the preferred source?
>  3. Should tools like Postallow be using something else entirely (a
> published JSON/txt feed, for instance)?
> 
> To be clear about the stakes: Postscreen is only the first line of
> defence. These allowlists skip Postscreen's early connection-phase
> checks - DNSBLs, pipelining tests and so on - but mail still passes
> through content filtering, DMARC evaluation, and spam scoring afterwards
> (if set up by the mail admin). So this isn't a critical security gap,
> just a question about the outbound IP ranges and which source is
> authoritative.
> 
> Any insight is appreciated.
> 
> Many thanks!
> 
>     Edmund Lodewijks
> 
> 
> [0]: https://github.com/edmundlod/postallow
> [1]: Blame mwl for writing a book on mail servers and mentioning a
> software tool in it...
> 
> -- 
> Edmund Lodewijks <[email protected]>
> TZ: UCT+2 / GMT+2
> _______________________________________________
> mailop mailing list
> [email protected]
> https://list.mailop.org/listinfo/mailop


-- 
Postmaster - [email protected]
Randolf Richardson, CNA - [email protected]
Inter-Corporate Computer & Network Services, Inc.
Vancouver, Beautiful British Columbia, Canada
https://www.inter-corporate.com/


_______________________________________________
mailop mailing list
[email protected]
https://list.mailop.org/listinfo/mailop

Reply via email to