HUB
Sign inSign up
rspamd logo

webkutir/rspamd

By webkutir

•Updated 21 days ago

Docker image for Rspamd 4.0.1 spam filter with Redis Bayes.

Image
Security
0

108

webkutir/rspamd repository overview

Rspamd milter for Postfix. Bayes statistics are stored in Redis. This image does not sign DKIM. OpenDKIM does that.

⁠Image

  • Base image: rspamd/rspamd:4.0.1
  • The settings in local.d are built into the image
  • Bayes uses Redis, with autolearn on
  • DKIM signing inside Rspamd is off
  • The milter listens on port 11332
  • The controller listens on port 11334

A change to local.d needs a new image build.

Mount /var/lib/rspamd if the statistics should survive a new container.

⁠Required environment

Rspamd reads variables that start with RSPAMD_ and strips that prefix inside the config.

VariablePurpose
RSPAMD_REDIS_SERVERSRedis address, such as redis:6379
RSPAMD_REDIS_PASSWORDRedis password
RSPAMD_CONTROLLER_PASSWORDPassword for the controller on port 11334
RSPAMD_DNS_SERVERSDNS resolver IP, without the port. The image queries port 53

⁠Run

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
Tag summary
Recent tags
Content type
Image
Digest
sha256:735b61eca…
Size
87.6 MB
Last updated
21 days ago
docker pull webkutir/rspamd:latest