]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Query MID RHS FQDNs against popular DNSBL using selectors 4888/head
authortwesterhever <40121680+twesterhever@users.noreply.github.com>
Sun, 28 Apr 2024 08:43:32 +0000 (08:43 +0000)
committertwesterhever <40121680+twesterhever@users.noreply.github.com>
Sun, 28 Apr 2024 08:43:32 +0000 (08:43 +0000)
See https://github.com/rspamd/rspamd/pull/4888 for the related
discussion.

conf/modules.d/rbl.conf

index ef87c4c5a052ec932e30a94faf80e41fd7372277..fc093eedcf12384bd150ae3efb5c558410ae7811 100644 (file)
@@ -208,6 +208,7 @@ rbl {
       checks = ['emails', 'dkim', 'helo', 'rdns', 'replyto', 'urls'];
       emails_domainonly = true;
       exclude_users = false;
+      selector = 'header(Message-Id).regexp("@([^\.]+\.[^>]+)").last';
 
       returnbits = {
         CRACKED_SURBL = 128;
@@ -244,6 +245,7 @@ rbl {
       checks = ['emails', 'dkim', 'helo', 'rdns', 'replyto', 'urls'];
       emails_domainonly = true;
       exclude_users = false;
+      selector = 'header(Message-Id).regexp("@([^\.]+\.[^>]+)").last';
 
       returnbits {
         URIBL_BLOCKED = 1;
@@ -277,6 +279,7 @@ rbl {
       checks = ['emails', 'dkim', 'helo', 'rdns', 'replyto', 'urls'];
       emails_domainonly = true;
       exclude_users = false;
+      selector = 'header(Message-Id).regexp("@([^\.]+\.[^>]+)").last';
 
       returncodes = {
         # spam domain