[Rspamd-Users] block foreign charsets
Achim Lammerts
ml-rspamd at syntaxys.de
Tue May 16 09:56:11 UTC 2023
Hey,
I do this with a map configured in …
# /etc/rspamd/local.d/multimap.conf:
BAD_CONTENT {
type = "content";
filter = "headers";
map = "${LOCAL_CONFDIR}/local.d/content_bad.map";
description = "Blocked header content map";
symbol = "BAD_CONTENT";
score = 10.0;
regexp = true;
}
an i. e. …
# /etc/rspamd/local.d/content_bad.map:
/Content-Type:.*(koi8\-r|big5|euc\-kr|gb2312|ksc5601\-1987|iso\-2022\-jp|windows\-1251).*/
Regards
Achim
Am 16.05.23 um 09:29 schrieb Katharina Knuth via Users:
> Hello, how can I block foreign charsets in rspamd?
> Like
>
> /Content-Type:.charset\s=\s*\“(koi8-r|big5|euc-kr|gb2312|ksc5601-1987|iso-2022-jp|windows-1251)\“/
>
> I do this at present with pcre via Postfix main.cf
>
> mimeheaderchecks =
> pcre:$filter/mimeheaderchecks
>
>
More information about the Users
mailing list