Sign inSign up

instantlinux/postfix-python

By instantlinux

Updated 18 days ago

Postfix with python support for more spam-control scripts

Image
0

6.3K

instantlinux/postfix-python repository overview

postfix-python

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.

Variables
VariableDefaultDescription
BLACKLIST_USER_SECRETNAMEmysql-blacklist-userMySQL cred secret name
CIDR_MIN_SIZE32size of netblock to blacklist
DB_HOSTdbhostdatabase host or IP
DB_NAMEblacklistdb name
DB_USERblacklisterdb user
HONEYPOT_ADDRS[email protected]comma-separated list of addresses
INBOUND_RELAY"by mail.mydomain.com"last inbound relay hop
SPAMLIMIT12any score above this will be quarantined
SPAMC_HOSTspamassassinspamassassin host or IP
Secrets
SecretDescription
mysql-blacklist-userusername and password for MySQL db

Upgrade Notes

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?
Contributing

If you want to make improvements to this image, see CONTRIBUTING.

Tag summary

Content type

Image

Digest

sha256:3159ec392

Size

100.8 MB

Last updated

18 days ago

docker pull instantlinux/postfix-python