[Rspamd-Users] can't get blacklisting to work

Ronny Seffner r.seffner at seffner-schlesier.de
Wed Nov 27 15:38:10 UTC 2019


Hi,

I can't see any score LOCAL_BL_FROM neighter mail will be blocked with following configuration.

'rspamadm configdump'
...
multimap {
    local_bl_from {
        type = "from";
        description = "Local from blacklist";
        symbol = "LOCAL_BL_FROM";
        map = "/var/lib/rspamd/local_bl_from.map.inc";
    }
...
group {
    local {
        symbols {
            LOCAL_BL_FROM {
                weight = 3;
                description = "Sender from listed in local from blacklist";
            }
...


'cat /var/lib/rspamd/local_bl_from.map.inc'
# do'nt empty this file
/dynamic-lht\.com$/

'grep -i local_bl_from /var/log/rspamd/rspamd.log'
2019-11-27 15:53:14 #13694(main) <44q4iq>; config; rspamd_config_new_symbol: registered symbol LOCAL_BL_FROM with weight 3.00 in and group local
2019-11-27 15:53:14 #13694(main) <44q4iq>; lua_redis; lua_redis.lua:442: cannot load redis server from obj: {[freemail_envfrom] = {[filter] = email:domain, [symbol] = FREEMAIL_ENVFROM, [type] = from, [map] = https://maps.rspamd.com/freemail/free.txt.zst, [description] = Envelope From is a Freemail address, [score] = 0}, [local_bl_from] = {[type] = from, [map] = /var/lib/rspamd/local_bl_from.map.inc, [symbol] = LOCAL_BL_FROM, [description] = Local from blacklist}, [local_wl_from] = {[type] = from, [map] = /var/lib/rspamd/local_wl_from.map.inc, [symbol] = LOCAL_WL_FROM, [description] = Local from whitelist}, [local_wl_ip] = {[type] = ip, [map] = /var/lib/rspamd/local_wl_ip.map.inc, [symbol] = LOCAL_WL_IP, [description] = Local ip whitelist}, [local_wl_rcpt] = {[type] = rcpt, [map] = /var/lib/rspamd/local_wl_rcpt.map.inc, [symbol] = LOCAL_WL_RCPT, [description] = Local rcpt whitelist}, [freemail_envrcpt] = {[filter] = email:domain, [symbol] = FREEMAIL_ENVRCPT, [type] = rcpt, [map] = https://maps.rspamd.com/freemail/free.txt.zst, [description] = Envelope Recipient is a Freemail address, [score] = 0}, [disposable_to] = {[filter] = email:domain, [map] = https://maps.rspamd.com/freemail/disposable.txt.zst, [symbol] = DISPOSABLE_TO, [type] = header, [header] = To, [description] = To a disposable e-mail address, [score] = 0}, [disposable_replyto] = {[filter] = email:domain, [map] = https://maps.rspamd.com/freemail/disposable.txt.zst, [symbol] = DISPOSABLE_REPLYTO, [type] = header, [header] = Reply-To, [description] = Reply-To a disposable e-mail address, [score] = 0}, [local_bl_ip] = {[type] = ip, [map] = /var/lib/rspamd/local_bl_ip.map.inc, [symbol] = LOCAL_BL_IP, [description] = Local ip blacklist}, [local_bl_rcpt] = {[type] = rcpt, [map] = /var/lib/rspamd/local_bl_rcpt.map.inc, [symbol] = LOCAL_BL_RCPT, [description] = Local rcpt blacklist}, [freemail_from] = {[filter] = email:domain, [map] = https://maps.rspamd.com/freemail/free.txt.zst, [symbol] = FREEMAIL_FROM, [type] = header, [header] = from, [description] = From is a Freemail address, [score] = 0}, [disposable_from] = {[filter] = email:domain, [map] = https://maps.rspamd.com/freemail/disposable.txt.zst, [symbol] = DISPOSABLE_FROM, [type] = header, [header] = from, [description] = From a Disposable e-mail address, [score] = 0}, [freemail_replyto] = {[filter] = email:domain, [map] = https://maps.rspamd.com/freemail/free.txt.zst, [symbol] = FREEMAIL_REPLYTO, [type] = header, [header] = Reply-To, [description] = Reply-To is a Freemail address, [score] = 0}, [disposable_cc] = {[filter] = email:domain, [map] = https://maps.rspamd.com/freemail/disposable.txt.zst, [symbol] = DISPOSABLE_CC, [type] = header, [header] = Cc, [description] = To a disposable e-mail address, [score] = 0}, [freemail_to] = {[filter] = email:domain, [map] = https://maps.rspamd.com/freemail/free.txt.zst, [symbol] = FREEMAIL_TO, [type] = header, [header] = To, [description] = To is a Freemail address, [score] = 0}, [disposable_envfrom] = {[filter] = email:domain, [symbol] = DISPOSABLE_ENVFROM, [type] = from, [map] = https://maps.rspamd.com/freemail/disposable.txt.zst, [description] = Envelope From is a Disposable e-mail address, [score] = 0}, [freemail_cc] = {[filter] = email:domain, [map] = https://maps.rspamd.com/freemail/free.txt.zst, [symbol] = FREEMAIL_CC, [type] = header, [header] = Cc, [description] = To is a Freemail address, [score] = 0}, [disposable_envrcpt] = {[filter] = email:domain, [symbol] = DISPOSABLE_ENVRCPT, [type] = rcpt, [map] = https://maps.rspamd.com/freemail/disposable.txt.zst, [description] = Envelope Recipient is a Disposable e-mail address, [score] = 0}}, processed to {[read_only] = true, [timeout] = 1, [expand_keys] = false}
2019-11-27 15:53:14 #13694(main) <1ip7xs>; map; rspamd_map_add: added map /var/lib/rspamd/local_bl_from.map.inc
2019-11-27 15:53:14 #13694(main) <44q4iq>; lua; multimap.lua:1255: added multimap rule: local_bl_from (from)
2019-11-27 15:53:14 #13694(main) <44q4iq>; symcache; rspamd_symcache_add_symbol: used items: 386, added symbol: LOCAL_BL_FROM, 244
2019-11-27 15:53:15 #13694(main) <44q4iq>; symcache; rspamd_symcache_tsort_visit: visiting node: LOCAL_BL_FROM (1)
2019-11-27 15:53:15 #13694(main) <1ip7xs>; map; read_map_file_chunks: /var/lib/rspamd/local_bl_from.map.inc: read map chunk, 64 bytes
2019-11-27 15:53:15 #13698(rspamd_proxy) <1ip7xs>; map; rspamd_map_schedule_periodic: schedule new periodic event 00007F3970C25980 in 0.000 seconds for /var/lib/rspamd/local_bl_from.map.inc; reason: init scheduled check
2019-11-27 15:53:55 #13698(rspamd_proxy) <b3c63f>; symcache; rspamd_symcache_check_symbol: execute LOCAL_BL_FROM, 244
2019-11-27 15:53:55 #13698(rspamd_proxy) <b3c63f>; symcache; rspamd_symcache_item_async_inc_full: increase async events counter for LOCAL_BL_FROM(244) = 0 + 1; subsystem lua symbol (/release/rspamd-2.2/src/lua/lua_config.c:1192)
2019-11-27 15:53:55 #13698(rspamd_proxy) <b3c63f>; multimap; multimap.lua:437: check value info22 at dynamic-lht.com for multimap LOCAL_BL_FROM
2019-11-27 15:53:55 #13698(rspamd_proxy) <b3c63f>; multimap; multimap.lua:437: check value dynamic-lht.com for multimap LOCAL_BL_FROM
2019-11-27 15:53:55 #13698(rspamd_proxy) <b3c63f>; multimap; multimap.lua:437: check value info22 for multimap LOCAL_BL_FROM
2019-11-27 15:53:55 #13698(rspamd_proxy) <b3c63f>; symcache; rspamd_symcache_item_async_dec_full: decrease async events counter for LOCAL_BL_FROM(244) = 1 - 1; subsystem lua symbol (/release/rspamd-2.2/src/lua/lua_config.c:1284)
2019-11-27 15:53:55 #13698(rspamd_proxy) <b3c63f>; symcache; rspamd_symcache_finalize_item: process finalize for item LOCAL_BL_FROM(244)


Did you get any idea what I missed?


Mit freundlichen Grüßen

Ronny Seffner


More information about the Users mailing list