Skip to content

Commit

Permalink
Merge pull request #11 from lcx/subject_blacklist
Browse files Browse the repository at this point in the history
Add subject regex blacklist
  • Loading branch information
tiredofit committed Jan 19, 2024
2 parents 08c54a2 + 78f8a31 commit 52864fe
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions install/assets/functions/10-rspamd
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,14 @@ WHITELIST_SENDER_DOMAIN {
score = -10.0
}

SUBJECT_BLACKLISTED {
type = "header";
header = "Subject";
map = "${RSPAMD_DATA_LOCATION}/maps.d/global_subject_blacklist.map";
regexp = true;
action = "reject"; # Prefilter mode
description = "Blacklist map for SUBJECT_BLACKLISTED";
}

EOF

Expand Down
1 change: 1 addition & 0 deletions install/assets/rspamd/maps.d/global_subject_blacklist.map
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# \sr.?e.?z.?e.?p.?t.?f.?r.?e.?i\s

0 comments on commit 52864fe

Please sign in to comment.