diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-09 22:55:52 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-09 22:55:52 +0100 |
commit | dfacc06c519b4fedb6260b2a3b8e789cf9137273 (patch) | |
tree | 5e12bf3d7757d59672ac0bebc25aed1236c3e086 | |
parent | dc0119dd770a91976ec6f55790c3657bdafcae54 (diff) | |
download | rspamd-dfacc06c519b4fedb6260b2a3b8e789cf9137273.tar.gz rspamd-dfacc06c519b4fedb6260b2a3b8e789cf9137273.zip |
Add configuration alias to avoid ambiguity.
-rw-r--r-- | src/plugins/dkim_check.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/plugins/dkim_check.c b/src/plugins/dkim_check.c index 3f7a2ae9a..073bb347f 100644 --- a/src/plugins/dkim_check.c +++ b/src/plugins/dkim_check.c @@ -173,6 +173,18 @@ dkim_module_config (struct rspamd_config *cfg) got_trusted = TRUE; } } + if (!got_trusted && (value = + rspamd_config_get_module_opt (cfg, "dkim", "trusted_domains")) != NULL) { + if (!rspamd_map_add (cfg, ucl_obj_tostring (value), + "DKIM domains", rspamd_kv_list_read, rspamd_kv_list_fin, + (void **)&dkim_module_ctx->dkim_domains)) { + msg_warn ("cannot load dkim domains list from %s", + ucl_obj_tostring (value)); + } + else { + got_trusted = TRUE; + } + } if ((value = rspamd_config_get_module_opt (cfg, "dkim", "strict_multiplier")) != NULL) { |