mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
Move DKIM from rmilter to rspamd
This commit is contained in:
parent
e45478ff49
commit
10b08dfd7f
3 changed files with 18 additions and 14 deletions
|
@ -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"
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
};
|
16
data/templates/rspamd/dkim_signing.conf
Normal file
16
data/templates/rspamd/dkim_signing.conf
Normal 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";
|
||||
|
Loading…
Add table
Reference in a new issue