Browse Source

[Test] Fix emailbl tests

tags/2.0
Vsevolod Stakhov 4 years ago
parent
commit
bb1eae8f68
2 changed files with 19 additions and 14 deletions
  1. 2
    0
      src/plugins/lua/rbl.lua
  2. 17
    14
      test/functional/configs/surbl.conf

+ 2
- 0
src/plugins/lua/rbl.lua View File

@@ -857,6 +857,8 @@ local function add_rbl(key, rbl, global_opts)

rspamd_logger.infox(rspamd_config, 'added rbl rule %s: %s',
rbl.symbol, description)
lua_util.debugm(N, rspamd_config, 'rule dump for %s: %s',
rbl.symbol, rbl)

if rbl.dkim then
rspamd_config:register_dependency(rbl.symbol, 'DKIM_CHECK')

+ 17
- 14
test/functional/configs/surbl.conf View File

@@ -64,21 +64,24 @@ EOD;
end
EOD;
}

}
}

emails {
"whitelist" = [
"rspamd-test.com"
]
rules {
"RSPAMD_EMAILBL_FULL" {
suffix = "test5.uribl";
check_emails = true;
emails_domainonly = false;
urls = false;
replyto = true;
images = false;
dnsbl = "test5.uribl";
domain_only = false;
replyto = true;
}
"RSPAMD_EMAILBL_DOMAINONLY" {
dnsbl = "test6.uribl";
domain_only = true;
replyto = true;
}
"RSPAMD_EMAILBL_DOMAINONLY" {
suffix = "test6.uribl";
check_emails = true;
emails_domainonly = true;
urls = false;
replyto = true;
images = false;
}
}
}

Loading…
Cancel
Save