initial commit

This commit is contained in:
Sebastian Hugentobler 2021-11-18 13:53:06 +01:00
commit 517ff96b15
Signed by: shu
GPG Key ID: BB32CF3CA052C2F0
8 changed files with 47 additions and 0 deletions

2
.gitignore vendored Executable file
View File

@ -0,0 +1,2 @@
*~
.DS_Store

6
Dockerfile Normal file
View File

@ -0,0 +1,6 @@
FROM thallian/confd-env:latest
RUN apk --no-cache add \
rspamd
ADD rootfs /

23
README.md Normal file
View File

@ -0,0 +1,23 @@
(Rspamd)[https://rspamd.com/] server with dkim signing.
# DKIM
Create new keys with `rspamadm dkim_keygen`.
Create a file `/etc/rspamd/dkim_selectors.map` and add domains and selectors like this:
```
example.com 20211102
example.org 20211101
```
With this, rspamd looks for the private keys in `/var/lib/rspamd/dkim/example.com.20211102.key` and
`/var/lib/rspamd/dkim/example.org.20211101.key` (it is your responsibility to create/mount these files).
# Environment Variables
## REDIS_SERVERS
- default: 127.0.0.1
Address of redis server to connect to (or multiples thereof).
See the [rspamd documentation](https://rspamd.com/doc/configuration/redis.html) for
more information.

View File

@ -0,0 +1,3 @@
[template]
src = "redis.conf.tmpl"
dest = "/etc/rspamd/local.d/redis.conf"

View File

@ -0,0 +1,3 @@
# See https://rspamd.com/doc/configuration/redis.html
servers = "{{ getenv "REDIS_SERVERS" "127.0.0.1" }}";

View File

@ -0,0 +1,6 @@
# To configure this module, please also check the following document:
# https://rspamd.com/doc/tutorials/scanning_outbound.html and
# https://rspamd.com/doc/modules/dkim_signing.html
path = "/var/lib/rspamd/dkim/$domain.$selector.key";
selector_map = "/etc/rspamd/dkim_selectors.map";

View File

@ -0,0 +1 @@
type = "console"

View File

@ -0,0 +1,3 @@
# Module documentation can be found at https://rspamd.com/doc/modules/milter_headers.html
extended_spam_headers = true;