Docker image for Rspamd 4.0.1 spam filter with Redis Bayes.
108
Rspamd milter for Postfix. Bayes statistics are stored in Redis. This image does not sign DKIM. OpenDKIM does that.
rspamd/rspamd:4.0.1local.d are built into the image1133211334A change to local.d needs a new image build.
Mount /var/lib/rspamd if the statistics should survive a new container.
Rspamd reads variables that start with RSPAMD_ and strips that prefix inside the config.
| Variable | Purpose |
|---|---|
RSPAMD_REDIS_SERVERS | Redis address, such as redis:6379 |
RSPAMD_REDIS_PASSWORD | Redis password |
RSPAMD_CONTROLLER_PASSWORD | Password for the controller on port 11334 |
RSPAMD_DNS_SERVERS | DNS resolver IP, without the port. The image queries port 53 |
docker run -d --name rspamd \
-p 11332:11332 \
-e RSPAMD_REDIS_SERVERS=redis:6379 \
-e RSPAMD_REDIS_PASSWORD=change-me \
-e RSPAMD_CONTROLLER_PASSWORD=change-me \
-e RSPAMD_DNS_SERVERS=10.0.0.1 \
-v rspamd-data:/var/lib/rspamd \
webkutir/rspamd:4.0.1
Point Postfix at the milter before OpenDKIM and OpenDMARC:
smtpd_milters = inet:rspamd:11332, inet:opendkim:41001, inet:opendmarc:10020
docker pull webkutir/rspamd:latest