[Rspamd-Users] multimap match mailto url in body

Kapetanakis Giannis bilias at edu.physics.uoc.gr
Mon Aug 4 09:02:45 UTC 2025


I was wrong.

type = "selector"
selector = "emails"
does indeed work

2025-08-04 12:01:08 #908218(controller) <17f1c4>; multimap; multimap.lua:564: check value yiountsvt005 at gmail.com for multimap TEST_BAD_MAILS
2025-08-04 12:01:08 #908218(controller) <17f1c4>; multimap; multimap.lua:545: got return "" (err code = 200) for multimap TEST_BAD_MAILS

Thanks :)

G

On 04/08/2025 11:57, Kapetanakis Giannis wrote:
> Hi Andrew and thanks for the answer,
>
> I tried that before and it did not work:
>
> local.d/multimap.conf:
>
> TEST_BAD_MAILS {
>    type = "content";
>    selector = "emails"
>    map = "${LOCAL_CONFDIR}/local.d/maps.d/bad_mails.map";
>    score = 5;
> }
>
> local.d/maps.d/bad_mails.map:
> yiountsvt005 at gmail.com
>
> rspamc < 1.eml
>
> No TEST_BAD_MAILS match
>
> Also in multimap debug:
>
> 2025-08-04 11:53:16 #907944(controller) <d47078>; multimap; multimap.lua:564: check value Return-Path:
> ...........(full eml).......
> <a href=3D"mailto:yiountsvt005 at gmail.com">yiountsvt005 at gmail.com</a>\x0D\x0A</span>.....
> for multimap TEST_BAD_MAILS
>
> 2025-08-04 11:55:57 #907944(controller) <b821f5>; multimap; multimap.lua:545: got return "not found" (err code = 404) for multimap TEST_BAD_MAILS
>
> This works but I would prefer to avoid it:
>
> BAD_MAILS_BODY {
>   type = "content";
>   filter = "text";
>   map = "${LOCAL_CONFDIR}/local.d/maps.d/bad_mails_body.map";
>   regexp = true;
>   score = 5;
>   dynamic_symbols = true;
> }
>
> Giannis
>
>
> On 01/08/2025 13:39, Andrew Lewis via Users wrote:
>> Hi Kapetanakis,
>>
>> On Fri, 2025-08-01 at 10:37 +0300, Kapetanakis Giannis wrote:
>>> I'd like to know if there is a map type to match email in body (href
>>> mailto links).
>> You could use `type = "selector"` with `selector = "emails"`.
>>
>> Best,
>> -AL.


More information about the Users mailing list