No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
README.md
trustymail.py

README.md

trustymail

Takes a list of email addresses or domains of trusted senders and generates whitelist files for Postgrey, SpamAssassin, etc.

Running

The sender list should be a plaintext file with one email address or domain per line. Comments prefixed with # are permitted.

-T: Path to the trusted sender list.
-P: Enable Postgrey configuration output.
-S: Enable SpamAssassin configuration output.

Example:

python trustymail.py -T ~/senders.txt -P --postgrey_file /etc/postgrey/whitelist_clients.local

Postgrey Support

Postgrey supports a default local whitelist file in /etc/postgrey/whitelist_clients.local. The whitelist file will match either full addresses or domains (no wildcard required).

SpamAssassin Support

SpamAssassin should load any *.cf file in its configuration directory, so we can specify any file name under the config path.

SpamAssassin uses the whitelist_from command with either a fully qualified address, or a wildcard (*@domain.com).