Skip to content

Commit d419434

Browse files
committed
rspamd: use score instead of forcing add header
This will make these rules work with greylisting once we enable support for it. The score for our text-based spam filtering is kept low enough for the combination of the replies module and authentication to bypass the Spam mailbox but not authentication alone.
1 parent c5f7163 commit d419434

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

rspamd/local.d/composite.conf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
SPF_SOFTFAIL_WITHOUT_DMARC_POLICY_ALLOW {
2+
expression = "R_SPF_SOFTFAIL & !DMARC_POLICY_ALLOW";
3+
score = 14;
4+
}

rspamd/local.d/force_actions.conf

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,4 @@ rules {
2828
expression = "R_SPF_PERMFAIL & !DMARC_POLICY_ALLOW";
2929
message = "SPF permerror";
3030
}
31-
32-
SPF_SOFTFAIL_WITHOUT_DMARC_POLICY_ALLOW {
33-
action = "add header";
34-
expression = "R_SPF_SOFTFAIL & !DMARC_POLICY_ALLOW";
35-
require_action = ["no action", "greylist"];
36-
}
3731
}

rspamd/local.d/multimap.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ SPAM_SUBJECT_TEXT {
119119
header = "Subject";
120120
map = "$LOCAL_CONFDIR/local.d/maps.d/spam_text.map";
121121
regexp = true;
122-
action = "add header";
122+
score = 10.5;
123123
}
124124

125125
BLOCKLIST_BODY_TEXT {
@@ -135,7 +135,7 @@ SPAM_BODY_TEXT {
135135
filter = "text";
136136
map = "$LOCAL_CONFDIR/local.d/maps.d/spam_text.map";
137137
regexp = true;
138-
action = "add header";
138+
score = 10.5;
139139
}
140140

141141
BLOCKLIST_IP {

0 commit comments

Comments
 (0)