[Rspamd-Users] rejecting tld

Vsevolod Stakhov vsevolod at rspamd.com
Thu Jul 4 16:23:31 UTC 2019


On 04/07/2019 16:22, Alexander Moisseev via Users wrote:
> On 04.07.2019 16:29, Hirschler András wrote:
>>> There is no type "top", try 'type = from; filter = "top";'.
>>
>> Thanks for the tip, but it did not work.
>> It give "bad search filter: top" error.
>>
> Sorry, it appears 'filter = "top";' is only for "hostname" type.
> 
> You can use a regexp map like this:
> 
> /\.icu$/i
> /\.xyz$/i
> 
> local_bl_tld {
>     filter = "email:domain:tld";
>     score = 99;
>     symbol = "LOCAL_BL_TLD";
>     type = "from";
>     description = "Local TLD blacklist";
>     regexp = true;
>     map = "/usr/local/etc/rspamd/local.d/local_bl_tld.map.inc";
> }
> 
> 
> 

We should probably extend selectors to do that...


More information about the Users mailing list