diff options
Diffstat (limited to 'src/plugins/spf.c')
-rw-r--r-- | src/plugins/spf.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/spf.c b/src/plugins/spf.c index d0998b05d..caff118e4 100644 --- a/src/plugins/spf.c +++ b/src/plugins/spf.c @@ -108,6 +108,10 @@ spf_module_config (struct rspamd_config *cfg) gint res = TRUE, cb_id; guint cache_size, cache_expire; + if (!rspamd_config_is_module_enabled (cfg, "spf")) { + return TRUE; + } + spf_module_ctx->whitelist_ip = radix_create_compressed (); if ((value = |