[Rspamd-Users] block foreign charsets

Katharina Knuth katharina.knuth at icloud.com
Tue May 16 10:33:41 UTC 2023


Am 16.05.23 um 11:56 schrieb Achim Lammerts via Users:
> 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
>>
>>

Thank you, Achim. I'll try that.

-- 
freundliche Grüße,
Sincerely yours,

Katharina Knuth



More information about the Users mailing list