Sign inSign up

eilandert/rspamd-git

By eilandert

Updated about 9 hours ago

rspamd git and release build

Image
1

100K+

eilandert/rspamd-git repository overview

rspamd — modern spam filter, hardened Docker image (Debian, git/HEAD)

eilandert/rspamd-git is a security-hardened Docker image of rspamd, the fast, modern spam-filtering system — Bayesian classifier, neural networks, greylisting, DNS blacklists (RBL/URIBL), Pyzor, Razor, OLEFY and DCC, all in one event-driven daemon. It is built from the rspamd package on deb.myguard.nl (git/HEAD and stable variants), so the container matches what apt install rspamd gives you from the repo.

rspamd plugs into Postfix/Dovecot over the milter and HTTP protocols and scores mail far faster than the SpamAssassin generation it replaces.

Why run rspamd in Docker

  • Clean separation of the mail-filtering brain from the MTA — restart, upgrade or roll back rspamd without touching Postfix.
  • Reproducible rule/model state via a single mounted volume.
  • Hardened by default — non-root, capability-dropped, read-only root filesystem. Background: Docker Hardening for Self-Hosters.

Hardened docker-compose.yml

services:
  rspamd:
    image: eilandert/rspamd-git:latest
    restart: unless-stopped
    read_only: true
    cap_drop: [ALL]
    security_opt:
      - no-new-privileges:true
    tmpfs:
      - /run
      - /tmp
    volumes:
      - rspamd-data:/var/lib/rspamd          # Bayes DB, neural models, fuzzy
      - ./rspamd/override.d:/etc/rspamd/override.d:ro
    ports:
      - "127.0.0.1:11332:11332"   # milter / proxy (Postfix talks here)
      - "127.0.0.1:11333:11333"   # normal worker
      - "127.0.0.1:11334:11334"   # controller / web UI + API
    healthcheck:
      test: ["CMD", "rspamadm", "control", "stat"]
      interval: 30s
      timeout: 5s
      retries: 3

volumes:
  rspamd-data:

Put a password on the controller (11334) and keep it on loopback or behind a reverse proxy with auth — it exposes a web UI and a scan API.

Tag summary

Content type

Image

Digest

sha256:65173ec66

Size

63.4 MB

Last updated

about 9 hours ago

docker pull eilandert/rspamd-git