# spfwhitelister
spfwhitelister is very simple Python library/utility.
Given a list of domains, it will query SPF records for those domains and retrieve the list of IP addresses authorized to send email for those domains. It can then manage that list in a file.
This can be used when using greylistd. One could schedule (crontab) this utility to run once or twice a day and manage the list of whitelisted hosts.
I am using Exim on Debian. Exim4 is very powerfull but it can be a real pain to configure, especially on Debian with the solit config. I think this is easier. With greylistd any address missed because of the delay would simply be greylisted.
This was tested on Debian with Exim4.
# Installation
We are on PyPi so
pip3 install spfwhitelister
You can then run:
spfwhitelister -o -d google.com amazon.com
Metadata
Release files for spfwhitelister 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| spfwhitelister-0.0.1.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| spfwhitelister-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.1 kB
Release files / spfwhitelister-0.0.1.tar.gz
| Download URL | spfwhitelister-0.0.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
65df2ead1d8ac4f1815d27ed59f225d4361a2040795d88934c9af1dee3d62e28
|
|
BLAKE2b-256 checksum How to use checksums |
d940a666ac6f8707b5a4b4c44f9d858add25a9f509e941c969f88992be305d6e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|
Release files / spfwhitelister-0.0.1-py3-none-any.whl
| Download URL | spfwhitelister-0.0.1-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
be1c3b3d0ec44f4fbcdb02e92fbf61f542b9251f24ebedd45cd2e57f4cb374ab
|
|
BLAKE2b-256 checksum How to use checksums |
bf2319dfb52a360bf76a1bc6a0c837e2103d4b853f2230ef89fe9a8b366de785
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|