[Rspamd-Users] header checks with regexp to add +score via multimap

Florian Piekert floppy at floppy.org
Tue Apr 22 12:36:36 UTC 2025


Hello all,

I am sick of those google groups spam messages and want to give all messages that have the

X-Google-Group-Id:

Header entry a +5 penalty in its scoring.

But how.

I tried

SUBJECT_SOFT_BLACK_HEADER_REGEX {
  type = "header";
  header = "regexp:/^X\-Google\-Group\-Id:*$/";
  regexp = true;
  map = "$LOCAL_CONFDIR/local.d/blacklist.header_soft_regexp.map";
  score = 5.0;
}

or
header="regexp:/re/";
with

/X\-Google\-Group\-Id/

in the blacklist.header_soft_regexp.map file.

What is the correct way to achieve what I try to?

Florian





More information about the Users mailing list