diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-08-06 13:45:27 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2024-08-06 13:45:27 +0100 |
commit | e227bedc4f24b1ab5cf7feae0d2acb076ddcb312 (patch) | |
tree | b6ee7e007a5b8bdaf6ea8ffa07d18ff82dd0d8fe /conf/scores.d | |
parent | aa0bc71c67e825ca4cbe34dd2c2e4cc86312c1e3 (diff) | |
download | rspamd-e227bedc4f24b1ab5cf7feae0d2acb076ddcb312.tar.gz rspamd-e227bedc4f24b1ab5cf7feae0d2acb076ddcb312.zip |
[Rework] Resolve rdns in a separate function
Historically, it was done in `once_received` module, however, that check must
be done early, even before settings (as they could rely on hostname).
Hence, it was discussed to move this code to a separate rule.
Diffstat (limited to 'conf/scores.d')
-rw-r--r-- | conf/scores.d/headers_group.conf | 8 | ||||
-rw-r--r-- | conf/scores.d/hfilter_group.conf | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/conf/scores.d/headers_group.conf b/conf/scores.d/headers_group.conf index 1c70ca588..972c6872a 100644 --- a/conf/scores.d/headers_group.conf +++ b/conf/scores.d/headers_group.conf @@ -50,14 +50,6 @@ symbols = { weight = 0.1; description = "One received header in a message"; } - "RDNS_NONE" { - weight = 2.0; - description = "Cannot resolve reverse DNS for sender's IP"; - } - "RDNS_DNSFAIL" { - weight = 0.0; - description = "PTR verification DNS error"; - } "ONCE_RECEIVED_STRICT" { weight = 4.0; description = "One received header with 'bad' patterns inside"; diff --git a/conf/scores.d/hfilter_group.conf b/conf/scores.d/hfilter_group.conf index 09fcfcd8d..21cd11a60 100644 --- a/conf/scores.d/hfilter_group.conf +++ b/conf/scores.d/hfilter_group.conf @@ -130,4 +130,12 @@ symbols = { weight = 2.5; description = "One line URL and text in body"; } + "RDNS_NONE" { + weight = 2.0; + description = "Cannot resolve reverse DNS for sender's IP"; + } + "RDNS_DNSFAIL" { + weight = 0.0; + description = "PTR verification DNS error"; + } } |