Move DKIM from rmilter to rspamd

This commit is contained in:
Alexandre Aubin 2017-08-27 22:37:04 +00:00
parent e45478ff49
commit 10b08dfd7f
3 changed files with 18 additions and 14 deletions

View file

@ -9,6 +9,8 @@ do_pre_regen() {
install -D -m 644 metrics.local.conf \
"${pending_dir}/etc/rspamd/local.d/metrics.conf"
install -D -m 644 dkim_signing.conf \
"${pending_dir}/etc/rspamd/local.d/dkim_signing.conf"
install -D -m 644 rspamd.sieve \
"${pending_dir}/etc/dovecot/global_script/rspamd.sieve"
}

View file

@ -1,14 +0,0 @@
# DKIM signing
# Note that DKIM signing should be done by rspamd in the near future
# See https://github.com/vstakhov/rmilter/issues/174
dkim {
enable = true;
domain {
key = /etc/dkim;
domain = "*";
selector = "mail";
};
header_canon = relaxed;
body_canon = relaxed;
sign_alg = sha256;
};

View file

@ -0,0 +1,16 @@
allow_envfrom_empty = true;
allow_hdrfrom_mismatch = false;
allow_hdrfrom_multiple = false;
allow_username_mismatch = true;
auth_only = true;
path = "/etc/dkim/$domain.$selector.key";
selector = "mail";
sign_local = true;
symbol = "DKIM_SIGNED";
try_fallback = true;
use_domain = "header";
use_esld = false;
use_redis = false;
key_prefix = "DKIM_KEYS";