瀏覽代碼

Remove HELO_NOT_FQDN as it exists in hfilter.

Submitted by: AL
tags/0.6.6
Vsevolod Stakhov 10 年之前
父節點
當前提交
928d072cec
共有 2 個文件被更改,包括 0 次插入24 次删除
  1. 0
    19
      conf/lua/rspamd.lua
  2. 0
    5
      conf/metrics.conf

+ 0
- 19
conf/lua/rspamd.lua 查看文件

@@ -68,25 +68,6 @@ reconf['DATE_IN_PAST'] = function(task)
return false
end

reconf['HELO_NOT_FQDN'] = function(task)
local helo = task:get_helo()

local function check_regexp(str, regexp_text)
local re = regexp.get_cached(regexp_text)
if not re then re = regexp.create(regexp_text, 'i') end
if re:match(str) then return true end
return false
end

if helo then
if not check_regexp(helo, '(?=^.{4,255}$)(^((?!-)[a-zA-Z0-9-]{1,63}(?<!-)\\.)+[a-zA-Z]{2,63}$)') then
return true
end
end

return false
end

local function file_exists(filename)
local file = io.open(filename)
if file then

+ 0
- 5
conf/metrics.conf 查看文件

@@ -693,11 +693,6 @@ metric {
description = "Message date is in past";
name = "DATE_IN_PAST";
}
symbol {
weight = 1.5;
description = "Helo host FQDN check";
name = "HELO_NOT_FQDN";
}
# hfilter symbols
symbol { weight = 1.00; name = "HFILTER_HELO_1"; description = "Helo host checks (very low)"; }
symbol { weight = 2.00; name = "HFILTER_HELO_2"; description = "Helo host checks (low)"; }

Loading…
取消
儲存