Sign inSign up

instantlinux/spamassassin

By instantlinux

•Updated 10 days ago

The spamassassin server for combatting unsolicited email.

Helm
Image
Security
2

500K+

instantlinux/spamassassin repository overview

⁠spamassassin

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.

⁠Usage

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
⁠Notes

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.
⁠Variables

These variables can be passed to the image from kubernetes.yaml or docker-compose.yml as needed:

VariableDefaultDescription
CRON_HOUR1hour for daily rules update (1)
CRON_MINUTE30cron minute for update (30)
EXTRA_OPTIONS--nouser-configadditional options
PYZOR_SITEpublic.pyzor.org:24441pyzor URI
TZUTCtime zone
USERNAMEdebian-spamduser name to run as
⁠Contributing

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

Tag summary

Content type

Image

Digest

sha256:2016c75fc…

Size

93.9 MB

Last updated

about 2 months ago

docker pull instantlinux/spamassassin