[Rspamd-Users] multimap check fails - why?
Johannes Rohr
johannes at rohr.org
Thu Aug 8 08:02:17 UTC 2024
Update: even rspamadm grep -s s
/etc/rspamd/local.d/maps.d/local_bl_from.map.inc
returns an empty result.
Shouldn't it return the line that contains "someuser at gmail.com"?
confused,
Johannes
(which is a character that is contained in the address
Am 08.08.24 um 09:36 schrieb Johannes Rohr:
> Dear all,
>
> in /etc/rspamd/local.d/multimap.conf the following rule is defined:
>
> local_bl_from { type = "from";
> filter = "email:addr";
> map = "$LOCAL_CONFDIR/maps.d/local_bl_from.map.inc";
> symbol = "LOCAL_BL_FROM";
> description = "Local from blacklist";
> regexp = "false";
> score = 8;
> }
>
> In the file "$LOCAL_CONFDIR/maps.d/local_bl_from.map.inc"; there is
> the single line
>
> somekuser at gmail.com
>
> I've added the multimap module to debug modules.
>
> When I send mail from someuser at gmail.com to my server I see the
> following in rspamd.log:
>
>
> 2024-08-08 09:18:02 #1720745(normal) <50c4b9>; multimap;
> multimap.lua:563: check value someuser at gmail.com for multimap
> LOCAL_BL_FROM
> 2024-08-08 09:18:02 #1720745(normal) <50c4b9>; multimap;
> multimap.lua:544: got return "not found" (err code = 404) for multimap
> LOCAL_BL_FROM
>
> Why is that? What am I missing? Does the 404 mean that rspamd fails
> to find the map file itself, or does it mean that rspamd failed to
> find the entry in the map?
>
> I've tried escaping the . in the address, replacing $LOCAL_CONFDIR by
> the actual path, all to no avail.
>
> Cheers!
>
> Johannes
>
More information about the Users
mailing list