]> source.dussan.org Git - rspamd.git/commitdiff
Add configuration alias to avoid ambiguity.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 9 May 2015 21:55:52 +0000 (22:55 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 9 May 2015 21:55:52 +0000 (22:55 +0100)
src/plugins/dkim_check.c

index 3f7a2ae9a3a194fa82fd1ec3893b3324d6dddb26..073bb347f9ae17b04d1c54c49c6afbef01a5d143 100644 (file)
@@ -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) {