Skip to main content

Library/utility to maintain a list of while listed domains.

Project description

# 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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

spfwhitelister-0.0.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spfwhitelister-0.0.1-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file spfwhitelister-0.0.1.tar.gz.

File metadata

  • Download URL: spfwhitelister-0.0.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for spfwhitelister-0.0.1.tar.gz
Algorithm Hash digest
SHA256 65df2ead1d8ac4f1815d27ed59f225d4361a2040795d88934c9af1dee3d62e28
MD5 d3243a2a3a0ad21a567cfb3c694a2c5d
BLAKE2b-256 d940a666ac6f8707b5a4b4c44f9d858add25a9f509e941c969f88992be305d6e

See more details on using hashes here.

File details

Details for the file spfwhitelister-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: spfwhitelister-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for spfwhitelister-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 be1c3b3d0ec44f4fbcdb02e92fbf61f542b9251f24ebedd45cd2e57f4cb374ab
MD5 86f974e168ef95bd2d277c88980c3f0f
BLAKE2b-256 bf2319dfb52a360bf76a1bc6a0c837e2103d4b853f2230ef89fe9a8b366de785

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page