Postfix with python support for more spam-control scripts
6.3K
Postfix with python support. (Python needed for blacklist utility.) This repo has complete instructions for building a kubernetes cluster where you can launch with helm or kubernetes.yaml using make and customizing Makefile.vars after cloning this repo:
git clone https://github.com/instantlinux/docker-tools.git
cd docker-tools/k8s
make postfix
See also the variables and secrets defined in base image README.
Messages flagged with a high spam score are diverted to subdirectories under /var/spool/postfix/quarantine. Set this path up as a volume mount if you want to preserve or process those messages with other tools.
| Variable | Default | Description |
|---|---|---|
| BLACKLIST_USER_SECRETNAME | mysql-blacklist-user | MySQL cred secret name |
| CIDR_MIN_SIZE | 32 | size of netblock to blacklist |
| DB_HOST | dbhost | database host or IP |
| DB_NAME | blacklist | db name |
| DB_USER | blacklister | db user |
| HONEYPOT_ADDRS | [email protected] | comma-separated list of addresses |
| INBOUND_RELAY | "by mail.mydomain.com" | last inbound relay hop |
| SPAMLIMIT | 12 | any score above this will be quarantined |
| SPAMC_HOST | spamassassin | spamassassin host or IP |
| Secret | Description |
|---|---|
| mysql-blacklist-user | username and password for MySQL db |
In versions 3.5.9 or later, there is a breaking change affecting the postalias command used to generate binary db files at startup. If you have an entry in any of your .cf files under /etc/postfix that look like:
alias_database = hash:/etc/postfix/aliases
change them to:
alias_database = lmdb:/etc/postfix/aliases
You will no longer see the error message:
postalias: fatal: unsupported dictionary type: hash. Is the postfix-hash package installed?
If you want to make improvements to this image, see CONTRIBUTING.
Content type
Image
Digest
sha256:3159ec392…
Size
100.8 MB
Last updated
18 days ago
docker pull instantlinux/postfix-python