[Rspamd-Users] rejecting tld

Alexander Moisseev moiseev at mezonplus.ru
Thu Jul 4 15:22:34 UTC 2019


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";
}





More information about the Users mailing list