This repository provides up-to-date IPv4 and IPv6 lists for common, trusted mail providers (โgood mailersโ). The generated ipv4.txt and ipv6.txt files can be used to whitelist these providers in firewalls or other network appliances.
The lists are updated daily via a scheduled GitHub Action. If no changes are detected in the resolved IP ranges, the files remain unchanged and no update is committed.
The following SPF include domains are used by the resolver script to gather IP ranges:
DOMAINS=(
"_spf.google.com"
"_spf.mail.yahoo.com"
"spf.protection.outlook.com"
"outlook.com"
"_spf.gmx.net"
"_spf.web.de"
"_spf.protonmail.ch"
"_spf.icloud.com"
"amazonses.com"
"sendgrid.net"
"mailgun.org"
)- Import the generated
ipv4.txtandipv6.txtinto your firewall or alias group (e.g., OPNsense aliases) to whitelist these IPs on relevant ports.
Feel free to add or remove SPF domains in .github/scripts/resolve_spf.sh by modifying the DOMAINS array. Submit pull requests for updates to additional mail providers or fixes.