initial commit
This commit is contained in:
commit
517ff96b15
2
.gitignore
vendored
Executable file
2
.gitignore
vendored
Executable file
@ -0,0 +1,2 @@
|
||||
*~
|
||||
.DS_Store
|
6
Dockerfile
Normal file
6
Dockerfile
Normal file
@ -0,0 +1,6 @@
|
||||
FROM thallian/confd-env:latest
|
||||
|
||||
RUN apk --no-cache add \
|
||||
rspamd
|
||||
|
||||
ADD rootfs /
|
23
README.md
Normal file
23
README.md
Normal 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.
|
3
rootfs/etc/confd/conf.d/redis.conf.toml
Normal file
3
rootfs/etc/confd/conf.d/redis.conf.toml
Normal file
@ -0,0 +1,3 @@
|
||||
[template]
|
||||
src = "redis.conf.tmpl"
|
||||
dest = "/etc/rspamd/local.d/redis.conf"
|
3
rootfs/etc/confd/templates/redis.conf.tmpl
Normal file
3
rootfs/etc/confd/templates/redis.conf.tmpl
Normal file
@ -0,0 +1,3 @@
|
||||
# See https://rspamd.com/doc/configuration/redis.html
|
||||
|
||||
servers = "{{ getenv "REDIS_SERVERS" "127.0.0.1" }}";
|
6
rootfs/etc/rspamd/local.d/dkim_signing.conf
Normal file
6
rootfs/etc/rspamd/local.d/dkim_signing.conf
Normal 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";
|
1
rootfs/etc/rspamd/local.d/logging.inc
Normal file
1
rootfs/etc/rspamd/local.d/logging.inc
Normal file
@ -0,0 +1 @@
|
||||
type = "console"
|
3
rootfs/etc/rspamd/local.d/milter_headers.conf
Normal file
3
rootfs/etc/rspamd/local.d/milter_headers.conf
Normal file
@ -0,0 +1,3 @@
|
||||
# Module documentation can be found at https://rspamd.com/doc/modules/milter_headers.html
|
||||
|
||||
extended_spam_headers = true;
|
Loading…
Reference in New Issue
Block a user