Open steveluscher opened 11 years ago
Thanks.
I did some checking and the values postscreen is warning about are from the original SPF record for those two domains. Very annoying and basic mistake to make. If either company had a responsive support I'd mention the mistake to them directly.
The first is in the first line of responses for spf1.amazon.com (included recursively from amazon.com). The second appears to be included from a company called mailgun.org (which is included in the github records).
The only solution other than calling the vendors and noting the odd subnet in their SPF records would be to pre-test all the subnets returned... though they may have a specific reason for including those specific masks... I'll think on it more.
If you have any ideas, or any ideas on how to add more to this script feel free to let me know.
I'm pumped that you took this seriously and got to the bottom of it, Sean! I don't have any ideas, because I never learned how IP ranges work. Would something like this help to validate the ranges before we use them? http://python-iptools.readthedocs.org/en/latest/
Thanks for this script. It's awesome!
I'm using this with postscreen; letting it create a static domain whitelist. Postscreen reported the following errors with two Amazon ranges, and one GitHub IP range: