aboutsummaryrefslogtreecommitdiffstats
path: root/rules/misc.lua
diff options
context:
space:
mode:
authorSteve Freegard <steve@stevefreegard.com>2017-03-28 23:46:35 +0100
committerSteve Freegard <steve@stevefreegard.com>2017-03-29 15:08:00 +0100
commit785481f6d52470adcbea18858ce66f01679ce622 (patch)
treed0c6c0da807330ea23b8b68a4df00be3de2c385e /rules/misc.lua
parentaae8be4c65669d6f3a5ac5825d696d5a4ac6dbad (diff)
downloadrspamd-785481f6d52470adcbea18858ce66f01679ce622.tar.gz
rspamd-785481f6d52470adcbea18858ce66f01679ce622.zip
Rules updates
Diffstat (limited to 'rules/misc.lua')
-rw-r--r--rules/misc.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/rules/misc.lua b/rules/misc.lua
index 07af50c12..0d83fa02a 100644
--- a/rules/misc.lua
+++ b/rules/misc.lua
@@ -204,6 +204,8 @@ local check_rcvd = rspamd_config:register_symbol{
local rcvd = rcvds[1]
if rcvd.flags and rcvd.flags['ssl'] then
task:insert_result('RCVD_TLS_LAST', 1.0)
+ else
+ task:insert_result('RCVD_NO_TLS_LAST', 1.0)
end
end
@@ -238,6 +240,15 @@ rspamd_config:register_symbol{
rspamd_config:register_symbol{
type = 'virtual',
parent = check_rcvd,
+ name = 'RCVD_NO_TLS_LAST',
+ description = 'Last hop did not use encrypted transports',
+ score = 0.0,
+ group = 'encryption'
+}
+
+rspamd_config:register_symbol{
+ type = 'virtual',
+ parent = check_rcvd,
name = 'RCVD_VIA_SMTP_AUTH',
description = 'Message injected via SMTP AUTH',
score = 0.0,