Skip to content

Instantly share code, notes, and snippets.

@lichtmetzger
lichtmetzger / get_subnets_of_spf_record_mynetworks.py
Last active January 20, 2026 11:53 — forked from lanbugs/get_subnets_of_spf_record_mynetwoks.py
Resolve all known ip addresses from spf record and generate cidr map for postfix
#!/usr/bin/env python3
#
# get_subnets_of_spf_record_mynetworks.py
# Resolve all known ip addresses from spf record and generate cidr map for postfix
# Version 2.0
# Updated by Danny Schmarsel (https://lichtmetzger.de)
# - just a small update for python3
#
# Version 1.0