From e55a24ad1443e02a9b4e909361dd3770b45ec196 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 20 Sep 2016 14:16:55 +0100 Subject: [PATCH] [Minor] MX checks should be one_shot --- src/plugins/lua/mx_check.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/plugins/lua/mx_check.lua b/src/plugins/lua/mx_check.lua index 0a41632f6..cdd099754 100644 --- a/src/plugins/lua/mx_check.lua +++ b/src/plugins/lua/mx_check.lua @@ -261,18 +261,21 @@ if opts then name = settings.symbol_bad_mx, score = 4.0, description = 'Domain has no working MX', - group = 'MX' + group = 'MX', + one_shot = true, }) rspamd_config:set_metric_symbol({ name = settings.symbol_good_mx, score = -0.1, description = 'Domain has working MX', - group = 'MX' + group = 'MX', + one_shot = true, }) rspamd_config:set_metric_symbol({ name = settings.symbol_no_mx, score = 1.5, description = 'Domain has no working MX', - group = 'MX' + group = 'MX', + one_shot = true, }) end -- 2.39.5