[Rspamd-Users] Bit.ly addresses.

Bill Pye bill.pye at phoenix-systems.co.uk
Sat Jan 25 18:34:03 UTC 2020


Thanks for that example and it does look simple but it's always simple if you know lua. :)

I'll give that a go and thanks again for responding.

Regards


Bill Pye

----- Original Message -----
> From: "Users" rspamd.com>
> To: "Users" rspamd.com>
> Cc: "Reio Remma" mrstuudio.ee>
> Sent: Friday, 24 January, 2020 08:09:39
> Subject: Re: [Rspamd-Users] Bit.ly addresses.

> It was as simple as this:
> 
> # cat /etc/rspamd/rspamd.local.lua
> -- lua rule
> rspamd_config.RUSSIAN_TEXT_PART = {
>     callback = function(task)
>         parts = task:get_text_parts()
>         if parts then
>             for _, part in ipairs(parts) do
>                 if part:get_language() == 'ru' then
>                     return true
>                 end
>             end
>         end
>         return false
>     end,
>     score = 0.0,
>     description = 'Russian language detected in text part',
>     group = 'language'
> }
> 
> And then use the RUSSIAN_TEXT_PART symbol in composite rules.
> 
> Good luck
> Reio
> 
> On 23/01/2020 20:04, Bill Pye via Users wrote:
>> Hi
>>
>> How about an example for us novices on this list, please. :)
>>
>> Regards
>>
>>
>> Bill
>>
>> ----- Original Message -----
>>> From: "Users" rspamd.com>
>>> To: "Users" rspamd.com>
>>> Cc: "Reio Remma" mrstuudio.ee>
>>> Sent: Thursday, 23 January, 2020 09:57:20
>>> Subject: Re: [Rspamd-Users] Bit.ly addresses.
>>> On 23/01/2020 11:19, Reio Remma via Users wrote:
>>>> On 23/01/2020 11:15, Alexander Moisseev via Users wrote:
>>>>> 23.01.2020 12:00, Reio Remma via Users пишет:
>>>>>> On 23/01/2020 10:29, Reio Remma wrote:
>>>>>>> Hello!
>>>>>>>
>>>>>>> Can anyone tell me if bit.ly short URLs are processed by Rspamd?
>>>>>>> Since the weekend one of my users has started to receive russian
>>>>>>> lottery spam, all of which contain a line of text in russian ending
>>>>>>> with bit.ly links.
>>>>>>>
>>>>>>> I expanded some of these links and they seemed to have URLs in them
>>>>>>> with TLD-s I have already penalized (however they aren't being
>>>>>>> scored).
>>>>>>>
>>>>>>> It seems someone has suddenly found a way into web servers - all
>>>>>>> these seems to be send from infected machines.
>>>>>> 2020-01-23 08:19:55 #1887(normal) ; task;
>>>>>> rspamd_mime_part_detect_language: detected part language: ru
>>>>>>
>>>>>> Is there anyway I can add a symbol if a specific language is
>>>>>> detected in a mail?
>>>>>>
>>>>> https://rspamd.com/doc/lua/rspamd_mimepart.html#mb8f0b
>>>> Noticed that, found my way to the LUA guide now. :)
>>> And that's done now, thanks! Turned out to be really simple to add a
>>> symbol via LUA script. :)
>>>
>>> Good luck,
>>> Reio
>>>
>>> --
>>> Users mailing list
>>> Users at lists.rspamd.com
>>> https://lists.rspamd.com/mailman/listinfo/users
> 
> 
> --
> Tervitades
> Reio Remma
> 
> *MR Stuudio OÜ*
> Tondi 17b, 11316, Tallinn
> Tel +372 650 4808
> Mob +372 56 22 00 33
> reio at mrstuudio.ee
> www.mrstuudio.ee
> 
> 
> 
> --
> Users mailing list
> Users at lists.rspamd.com
> https://lists.rspamd.com/mailman/listinfo/users


More information about the Users mailing list