[Rspamd-Users] can't get blacklisting to work

Reio Remma reio at mrstuudio.ee
Wed Nov 27 18:55:57 UTC 2019


On 27.11.2019 20:22, Ralph Meyer via Users wrote:
> Hi,
>
>>     local_bl_from {
>>         type = "from";
>>         description = "Local from blacklist";
>>         symbol = "LOCAL_BL_FROM";
>>         map = "/var/lib/rspamd/local_bl_from.map.inc";
>>     }
>
> Try
>
> /etc/rspamd/local.d/multimap.conf
>
> local_bl_from {
>      type = "from";
>      map = "/var/lib/rspamd/local_bl_from.map.inc";
>      symbol = "LOCAL_BL_FROM";
>      description = "Local from blacklist";
>      regexp = true;
>      score = 3;
>       }
>
>
>
>> 'cat /var/lib/rspamd/local_bl_from.map.inc'
>> # do'nt empty this file
>> /dynamic-lht\.com$/
> I also think your regex doesn't match.
>
> /^.*dynamic-lht\.com$/
>
> Ralph

If you're matching only domains, try adding:|

filter = "|||email:domain|";

And list plain domains in the multimap (no regex needed).

https://rspamd.com/doc/modules/multimap.html#from-rcpt-and-header-filters

Reio
|


More information about the Users mailing list