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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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