spamassassin
The spamassassin server for combatting unsolicited email.
500K+
This image includes pyzor, razor2 and dcc (with proper initialization of razor2 upon container start). The rules update can be scheduled to run at an interval specified in cron.
To add local rules, create a rules file for /etc/mail/spamassassin/local.cf and map that file into the container. To ensure that updated rules survive container restart, make sure the /var/lib/spamassassin home directory is mounted to a named volume. See the docker-compose.yml file here for an example. 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 spamassassin
At startup, if you've enabled razor2 the following warning is expected:
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Razor2/Client/Config.pm line 442.
Use of uninitialized value in concatenation (.) or string at /usr/share/perl5/Razor2/Client/Config.pm line 443.
These variables can be passed to the image from kubernetes.yaml or docker-compose.yml as needed:
| Variable | Default | Description |
|---|---|---|
| CRON_HOUR | 1 | hour for daily rules update (1) |
| CRON_MINUTE | 30 | cron minute for update (30) |
| EXTRA_OPTIONS | --nouser-config | additional options |
| PYZOR_SITE | public.pyzor.org:24441 | pyzor URI |
| TZ | UTC | time zone |
| USERNAME | debian-spamd | user name to run as |
If you want to make improvements to this image, see CONTRIBUTING.
Content type
Image
Digest
sha256:0c663024d…
Size
71.1 MB
Last updated
6 months ago
docker pull instantlinux/spamassassin