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

Tino Hendricks t.hendricks at interpool.de
Tue Apr 22 13:47:36 UTC 2025


Hi Florian,

I think the correct Syntax is

SUBJECT_SOFT_BLACK_HEADER_REGEX {
	type = "content“; 
	filter = "headers"; 
	regexp = true;
	map = "$LOCAL_CONFDIR/local.d/blacklist.header_soft_regexp.map“;
	score = 5.0;
}

Best,

Tino

> Am 22.04.2025 um 14:36 schrieb Florian Piekert via Users <users at lists.rspamd.com>:
> 
> 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
> 
> 
> 
> -- 
> Users mailing list
> Users at lists.rspamd.com
> https://lists.rspamd.com/mailman/listinfo/users

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4339 bytes
Desc: not available
URL: <https://lists.rspamd.com/pipermail/users/attachments/20250422/8bf8b872/attachment.bin>


More information about the Users mailing list