SPF2IP
This is a Python module which iterates through a domain’s SPF record data, and lists all of the IP addresses found within the SPF record itself, all “included” SPF records, and IP addresses resolved from the “A/AAAA” records found in the SPF records and any “MX” records.
This module supports returning both IPv4 and IPv6 addresses.
The output of this module can be used to configure a firewall dynamically when SMTP traffic should only be received from trusted sources such as in the event that you want to get email from your cloud provider to your on-premises mail servers without exposing the SMTP ports to the world.
—
INSTALLATION
Install from pip:
pip install SPF2IP
—
COMMON USAGE
Command line:
SPF2IP [-h] --domain DOMAIN [--ip-version {4,6}]
Module:
from SPF2IP import SPF2IP
lookup = SPF2IP('example.org')
lookup.IPArray('4') # Specify the IP version which you would like listed
Metadata
Release files for SPF2IP 1.0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| SPF2IP-1.0.5.tar.gz | 3.5 kB | Without provenance | Details for SPF2IP-1.0.5.tar.gz |
Release files / SPF2IP-1.0.5.tar.gz
| Download URL | SPF2IP-1.0.5.tar.gz |
|---|---|
| Size | 3.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e5b42266de514becd10381cadf1dda25eb821962b603b47fb1d5bb70bb505cc9
|
|
BLAKE2b-256 checksum How to use checksums |
dfb19d537d4d910e4b20474a6107f3fba3470846a7b309a515926da0928d5db8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for SPF2IP 1.0.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.