Best way to add unconditional symbol

350 views
Skip to first unread message

Aki

unread,
Dec 13, 2017, 7:00:02 PM12/13/17
to rspamd
I want to add a symbol at all messages with zero score which may later have its score increased. In /etc/rspamd/rspamd.local.lua I added:

rspamd_config.MYPRE = {
 type = 'prefilter',
  priority = 10,
  callback = function(task)
   task:insert_result('GRPA', 0)
  end
}

It worked for adding the symbol, but it caused an error in url_redirector module and prevented custom user settings from loading. There is probably a better way, could someone make a suggestion please?

Andrew Lewis

unread,
Dec 14, 2017, 5:23:25 AM12/14/17
to rsp...@googlegroups.com
Hi,

> task:insert_result('GRPA', 0)

This should only be used in 'callback' symbols and virtual symbols
should be registered in this case. You want to use 'return true' here.

Best,
-AL.

Aki

unread,
Dec 14, 2017, 7:27:08 AM12/14/17
to rspamd
Thank you, I'm not sure if I undersant you 100% but this seems to work

rspamd_config.GRPA = {
 type = 'prefilter',
 score = 0,
 callback = function()
  return true
 end
}

Is this the most efficient method? I think I saw a post from you explaining how to unconditionally add a zero-score symbol to all messages, but I cant find it now. IIRC you showed how to do it without a prefilter as I have done. Your method probably more simple than mine. Thanks for your time to respond.

Aki

unread,
Dec 14, 2017, 7:39:56 AM12/14/17
to rspamd
Updated- the symbol is being applied and user settings are working now, but it has caused this error:

task; lua_metric_symbol_callback: call to (REPLIES_CHECK) failed (2): /usr/share/rspamd/lua/url_redirector.lua:260: attempt to index local 'url' (a nil value); trace: [1]:{/usr/share/rspamd/lua/url_redirector.lua:260 - <unknown> [Lua]};

So I'm still making a mistake. Appreciate if you can explain a better way to achieve this without causing errors.

Andrew Lewis

unread,
Dec 14, 2017, 7:47:43 AM12/14/17
to rsp...@googlegroups.com
Hi,

> Updated- the symbol is being applied and user settings are working now, but
> it has caused this error:
> task; lua_metric_symbol_callback: call to (REPLIES_CHECK) failed (2):
> /usr/share/rspamd/lua/url_redirector.lua:260: attempt to index local 'url'
> (a nil value); trace: [1]:{/usr/share/rspamd/lua/url_redirector.lua:260 -
> <unknown> [Lua]};

It's a bizarre issue. I have no idea how to reproduce it. We have
similar report here but not much to go on:
https://github.com/vstakhov/rspamd/issues/1901

> So I'm still making a mistake. Appreciate if you can explain a better way
> to achieve this without causing errors.

Works for me without issue. Your wrong example from before works too.

Best,
-AL.

Aki

unread,
Dec 14, 2017, 3:22:36 PM12/14/17
to rspamd


On Thursday, December 14, 2017 at 4:47:43 AM UTC-8, Andrew Lewis wrote:
Hi,

> Updated- the symbol is being applied and user settings are working now, but
> it has caused this error:
> task; lua_metric_symbol_callback: call to (REPLIES_CHECK) failed (2):
> /usr/share/rspamd/lua/url_redirector.lua:260: attempt to index local 'url'
> (a nil value); trace: [1]:{/usr/share/rspamd/lua/url_redirector.lua:260 -
> <unknown> [Lua]};

It's a bizarre issue. I have no idea how to reproduce it. We have  
similar report here but not much to go on:  
https://github.com/vstakhov/rspamd/issues/1901

Hmm I changed a few things and the error went away. I'm sorry I can't help more but I will try to undo a couple changes and see if I can trigger it again, and report back if I can.
 

Aki

unread,
Dec 14, 2017, 3:47:33 PM12/14/17
to rspamd

I could reproduce it. I had to add 4 symbols to make it happen. So I add these in /etc/rspamd/rspamd.local.lua

rspamd_config.FOO = {

   type = 'prefilter',
   score = 0,
   callback = function()
      return true
   end
}
rspamd_config.BAR = {

   type = 'prefilter',
   score = 0,
   callback = function()
      return true
   end
}
rspamd_config.NANI = {

   type = 'prefilter',
   score = 0,
   callback = function()
      return true
   end
}
rspamd_config.BOO = {

   type = 'prefilter',
   score = 0,
   callback = function()
      return true
   end
}

task; lua_metric_symbol_callback: call to (REPLIES_CHECK) failed (2): /usr/share/rspamd/lua/url_redirector.lua:260: attempt to index local 'url' (a nil value); trace: [1]:{/usr/share/rspamd/lua/url_redirector.lua:260 - <unknown> [Lua]};

Of interest if I add 5 symbols, the error changes:

task; lua_metric_symbol_callback: call to (REPLIES_SET) failed (2): /usr/share/rspamd/lua/url_redirector.lua:260: attempt to index local 'url' (a nil value); trace: [1]:{/usr/share/rspamd/lua/url_redirector.lua:260 - <unknown> [Lua]};

I hope that can help find the bug!

Vsevolod Stakhov

unread,
Dec 19, 2017, 1:06:30 PM12/19/17
to Aki, rspamd
I cannot reproduce it. Do you use luajit?

Vsevolod Stakhov

unread,
Dec 19, 2017, 1:34:29 PM12/19/17
to Aki, rspamd
And what happens if you add 6 symbols? What happens if you disable
`url_redirector`, what happens if you disable `replies`, paste full
initialization logs (I'm mostly interested in what order modules have
been initialized)?

Aki

unread,
Dec 19, 2017, 1:42:06 PM12/19/17
to rspamd

Its installed on the machine, yes.
 

Aki

unread,
Dec 19, 2017, 1:50:38 PM12/19/17
to rspamd

task; lua_metric_symbol_callback: call to ((NULL)) failed (2): /usr/share/rspamd/lua/url_redirector.lua:260: attempt to index local 'url' (a nil value); trace: [1]:{/usr/share/rspamd/lua/url_redirector.lua:260 - <unknown> [Lua]};
 
What happens if you disable
`url_redirector`,

Its not enabled
 
what happens if you disable `replies`,

Do I have to create local.d/replies.conf with enabled=false? Do you think this test is only relevant when there are 4 or 5 symbols in the config?
 
paste full
initialization logs (I'm mostly interested in what order modules have
been initialized)?

I'll try to get this, does reload produce needed logs?

Aki Kyo

unread,
Dec 19, 2017, 2:36:12 PM12/19/17
to Vsevolod Stakhov, rspamd
Is this enough? More if you need! :)

2017-12-20 04:03:59 #24032(main) <29r3mb>; main; rspamd_hup_handler:
rspamd 1.6.5 is restarting
2017-12-20 04:03:59 #24032(main) <29r3mb>; main; kill_old_workers:
send signal to worker 9912
2017-12-20 04:03:59 #24032(main) <29r3mb>; main; kill_old_workers:
send signal to worker 9913
2017-12-20 04:03:59 #24032(main) <29r3mb>; main; kill_old_workers:
send signal to worker 9915
2017-12-20 04:03:59 #24032(main) <29r3mb>; main; kill_old_workers:
send signal to worker 9917
2017-12-20 04:03:59 #24032(main) <29r3mb>; main; kill_old_workers:
send signal to worker 9916
2017-12-20 04:03:59 #9912(rspamd_proxy) <29r3mb>; main;
rspamd_worker_usr2_handler: worker's shutdown is pending in 10 sec
2017-12-20 04:03:59 #9915(normal) rspamd_worker_on_terminate:
performing finishing actions
2017-12-20 04:03:59 #9915(normal) <29r3mb>; main;
rspamd_worker_usr2_handler: worker's shutdown is pending in 10 sec
2017-12-20 04:03:59 #9917(hs_helper) <29r3mb>; main;
rspamd_worker_usr2_handler: worker's shutdown is pending in 10 sec
2017-12-20 04:03:59 #9913(controller) rspamd_controller_on_terminate:
closing rrd file: /var/lib/rspamd/rspamd.rrd
2017-12-20 04:03:59 #9913(controller) <29r3mb>; main;
rspamd_worker_usr2_handler: worker's shutdown is pending in 10 sec
2017-12-20 04:03:59 #9916(normal) rspamd_worker_on_terminate:
performing finishing actions
2017-12-20 04:03:59 #9916(normal) <29r3mb>; main;
rspamd_worker_usr2_handler: worker's shutdown is pending in 10 sec
2017-12-20 04:03:59 #24032(main) <6e418n>; cfg;
chartable_module_config: init internal chartable module
2017-12-20 04:03:59 #24032(main) <6e418n>; cfg; rspamd_init_filters:
reconfig of chartable
2017-12-20 04:03:59 #24032(main) <6e418n>; cfg; dkim_module_config:
init internal dkim module
2017-12-20 04:03:59 #24032(main) <6e418n>; cfg; rspamd_init_filters:
reconfig of dkim
2017-12-20 04:03:59 #24032(main) <6e418n>; cfg; spf_module_config:
init internal spf module
2017-12-20 04:03:59 #24032(main) <6e418n>; cfg; rspamd_init_filters:
reconfig of spf
2017-12-20 04:03:59 #24032(main) <6e418n>; cfg;
rspamd_map_parse_backend: map '/var/lib/rspamd/2tld.inc.local' is not
found, but it can be loaded automatically later
2017-12-20 04:03:59 #24032(main) <o6xehe>; map;
rspamd_map_add_from_ucl: added map from ucl
2017-12-20 04:03:59 #24032(main) <6e418n>; cfg;
rspamd_map_parse_backend: map
'/var/lib/rspamd/surbl-whitelist.inc.local' is not found, but it can
be loaded automatically later
2017-12-20 04:03:59 #24032(main) <hhqhwh>; map;
rspamd_map_add_from_ucl: added map from ucl
2017-12-20 04:03:59 #24032(main) <6e418n>; cfg; surbl_module_config:
init internal surbls module, 16 uribl rules loaded
2017-12-20 04:03:59 #24032(main) <6e418n>; cfg; rspamd_init_filters:
reconfig of surbl
2017-12-20 04:03:59 #24032(main) <6e418n>; cfg; regexp_module_config:
init internal regexp module, 117 regexp rules and 0 lua rules are
loaded
2017-12-20 04:03:59 #24032(main) <6e418n>; cfg; rspamd_init_filters:
reconfig of regexp
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg; fuzzy_parse_rule:
added fuzzy rule FUZZY_UNKNOWN, key: ef43ae80cc8d, shingles_key:
ef43ae80cc8d, algorithm: mum
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
fuzzy_check_module_config: init internal fuzzy_check module, 1 rules
loaded
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg; rspamd_init_filters:
reconfig of fuzzy_check
2017-12-20 04:04:00 #24032(main) <6e418n>; lua; lua_redis.lua:117:
using default redis server for module antivirus
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_map_parse_backend: map '/etc/rspamd/antivirus.wl' is not found,
but it can be loaded automatically later
2017-12-20 04:04:00 #24032(main) <us4pbz>; map; rspamd_map_add: added
map /etc/rspamd/antivirus.wl
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module antivirus
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module arc
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module asn
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_config_is_module_enabled: lua module bayes_expiry is enabled
but has not been configured
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_config_is_module_enabled: bayes_expiry disabling unconfigured
lua module
2017-12-20 04:04:00 #24032(main) <6e418n>; lua; clickhouse.lua:639: no
servers are specified, disabling module
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module clickhouse
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module dcc
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_config_is_module_enabled: lua module dkim_signing is disabled
in the configuration
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module dmarc
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_config_is_module_enabled: lua module dynamic_conf is enabled
but has not been configured
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_config_is_module_enabled: dynamic_conf disabling unconfigured
lua module
2017-12-20 04:04:00 #24032(main) <6e418n>; lua; emails.lua:174: add
emails rule ebl.msbl.org
2017-12-20 04:04:00 #24032(main) <6e418n>; lua; emails.lua:174: add
emails rule email.rspamd.com
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module emails
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_config_is_module_enabled: lua module fann_classifier is enabled
but has not been configured
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_config_is_module_enabled: fann_classifier disabling
unconfigured lua module
2017-12-20 04:04:00 #24032(main) <6e418n>; lua; lua_redis.lua:117:
using default redis server for module fann_redis
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module fann_redis
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_config_is_module_enabled: lua module fann_scores is enabled but
has not been configured
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_config_is_module_enabled: fann_scores disabling unconfigured
lua module
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module force_actions
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module forged_recipients
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_config_is_module_enabled: lua module fuzzy_collect is enabled
but has not been configured
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_config_is_module_enabled: fuzzy_collect disabling unconfigured
lua module
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_map_parse_backend: map
'/etc/rspamd/local.d/greylist-whitelist-domains.inc' is not found, but
it can be loaded automatically later
2017-12-20 04:04:00 #24032(main) <1qrz1e>; map;
rspamd_map_add_from_ucl: added map from ucl
2017-12-20 04:04:00 #24032(main) <6e418n>; lua; lua_redis.lua:117:
using default redis server for module greylist
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module greylist
2017-12-20 04:04:00 #24032(main) <4dego7>; map;
rspamd_map_add_from_ucl: added map from ucl
2017-12-20 04:04:00 #24032(main) <4dego7>; map;
rspamd_map_add_from_ucl: added map from ucl
2017-12-20 04:04:00 #24032(main) <4dego7>; map;
rspamd_map_add_from_ucl: added map from ucl
2017-12-20 04:04:00 #24032(main) <4dego7>; map;
rspamd_map_add_from_ucl: added map from ucl
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module hfilter
2017-12-20 04:04:00 #24032(main) <6e418n>; lua; lua_redis.lua:117:
using default redis server for module history_redis
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module history_redis
2017-12-20 04:04:00 #24032(main) <6e418n>; lua; lua_redis.lua:117:
using default redis server for module ip_score
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module ip_score
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module maillist
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module metadata_exporter
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module metric_exporter
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_map_parse_backend: map '/etc/rspamd/local.d/mid.inc' is not
found, but it can be loaded automatically later
2017-12-20 04:04:00 #24032(main) <35rhob>; map;
rspamd_map_add_from_ucl: added map from ucl
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module mid
2017-12-20 04:04:00 #24032(main) <6e418n>; lua;
milter_headers.lua:480: active routines [spam-header]
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module milter_headers
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_map_parse_backend: map '/var/lib/rspamd/mime_types.inc.local'
is not found, but it can be loaded automatically later
2017-12-20 04:04:00 #24032(main) <zcfokz>; map;
rspamd_map_add_from_ucl: added map from ucl
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module mime_types
2017-12-20 04:04:00 #24032(main) <6e418n>; lua; lua_redis.lua:117:
using default redis server for module multimap
2017-12-20 04:04:00 #24032(main) <qwxppg>; map; rspamd_map_add: added
map https://rspamd.com/freemail/free.txt.zst
2017-12-20 04:04:00 #24032(main) <qwxppg>; map; rspamd_map_add: added
map https://rspamd.com/freemail/free.txt.zst
2017-12-20 04:04:00 #24032(main) <xa6qqy>; map; rspamd_map_add: added
map https://rspamd.com/freemail/disposable.txt.zst
2017-12-20 04:04:00 #24032(main) <6e418n>; lua; multimap.lua:860:
reuse url for DISPOSABLE_CC:
"https://rspamd.com/freemail/disposable.txt.zst"
2017-12-20 04:04:00 #24032(main) <6e418n>; lua; multimap.lua:860:
reuse url for DISPOSABLE_TO:
"https://rspamd.com/freemail/disposable.txt.zst"
2017-12-20 04:04:00 #24032(main) <6e418n>; lua; multimap.lua:860:
reuse url for DISPOSABLE_FROM:
"https://rspamd.com/freemail/disposable.txt.zst"
2017-12-20 04:04:00 #24032(main) <6e418n>; lua; multimap.lua:860:
reuse url for FREEMAIL_REPLYTO:
"https://rspamd.com/freemail/free.txt.zst"
2017-12-20 04:04:00 #24032(main) <qwxppg>; map; rspamd_map_add: added
map https://rspamd.com/freemail/free.txt.zst
2017-12-20 04:04:00 #24032(main) <qwxppg>; map; rspamd_map_add: added
map https://rspamd.com/freemail/free.txt.zst
2017-12-20 04:04:00 #24032(main) <xa6qqy>; map; rspamd_map_add: added
map https://rspamd.com/freemail/disposable.txt.zst
2017-12-20 04:04:00 #24032(main) <6e418n>; lua; multimap.lua:860:
reuse url for FREEMAIL_CC: "https://rspamd.com/freemail/free.txt.zst"
2017-12-20 04:04:00 #24032(main) <xa6qqy>; map; rspamd_map_add: added
map https://rspamd.com/freemail/disposable.txt.zst
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module multimap
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_config_is_module_enabled: lua module mx_check is disabled in
the configuration
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module once_received
2017-12-20 04:04:00 #24032(main) <9i1dgi>; map; rspamd_map_add: added
map https://www.openphish.com/feed.txt
2017-12-20 04:04:00 #24032(main) <tr59c5>; map; rspamd_map_add: added
map https://rspamd.com/phishtank/online-valid.json.zst
2017-12-20 04:04:00 #24032(main) <t4cei1>; map; rspamd_map_add: added
map /etc/rspamd/redirectors.inc
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_map_parse_backend: map '/etc/rspamd/local.d/redirectors.inc' is
not found, but it can be loaded automatically later
2017-12-20 04:04:00 #24032(main) <ykeyj5>; map; rspamd_map_add: added
map /etc/rspamd/local.d/redirectors.inc
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module phishing
2017-12-20 04:04:00 #24032(main) <6e418n>; lua; ratelimit.lua:628:
enabled rate buckets: []
2017-12-20 04:04:00 #24032(main) <6e418n>; lua; lua_redis.lua:117:
using default redis server for module ratelimit
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module ratelimit
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module rbl
2017-12-20 04:04:00 #24032(main) <6e418n>; lua; lua_redis.lua:117:
using default redis server for module replies
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module replies
2017-12-20 04:04:00 #24032(main) <4qz1bt>; map; rspamd_map_add: added
map http://rspamd.com/update/rspamd-1.6.ucl
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module rspamd_update
2017-12-20 04:04:00 #24032(main) <6e418n>; lua; lua_redis.lua:117:
using default redis server for module settings_redis
2017-12-20 04:04:00 #24032(main) <6e418n>; lua; settings.lua:533:
loaded 1 elements of settings
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module settings
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module spamassassin
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_config_is_module_enabled: lua module spamtrap is disabled in
the configuration
2017-12-20 04:04:00 #24032(main) <6e418n>; lua; trie.lua:165: no tries defined
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module trie
2017-12-20 04:04:00 #24032(main) <6e418n>; lua; lua_redis.lua:117:
using default redis server for module url_redirector
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module url_redirector
2017-12-20 04:04:00 #24032(main) <6e418n>; lua; lua_redis.lua:117:
using default redis server for module url_reputation
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module url_reputation
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_config_is_module_enabled: lua module url_tags is disabled in
the configuration
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_map_parse_backend: map
'/var/lib/rspamd/dmarc_whitelist.inc.local' is not found, but it can
be loaded automatically later
2017-12-20 04:04:00 #24032(main) <rp5tkn>; map;
rspamd_map_add_from_ucl: added map from ucl
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_map_parse_backend: map
'/var/lib/rspamd/spf_dkim_whitelist.inc.local' is not found, but it
can be loaded automatically later
2017-12-20 04:04:00 #24032(main) <mb4rmx>; map;
rspamd_map_add_from_ucl: added map from ucl
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_map_parse_backend: map '/etc/rspamd/dkim_whitelist.inc' is not
found, but it can be loaded automatically later
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_map_parse_backend: map
'/var/lib/rspamd/dkim_whitelist.inc.local' is not found, but it can be
loaded automatically later
2017-12-20 04:04:00 #24032(main) <p3qqab>; map;
rspamd_map_add_from_ucl: added map from ucl
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_map_parse_backend: map '/etc/rspamd/spf_whitelist.inc' is not
found, but it can be loaded automatically later
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_map_parse_backend: map
'/var/lib/rspamd/spf_whitelist.inc.local' is not found, but it can be
loaded automatically later
2017-12-20 04:04:00 #24032(main) <649s9e>; map;
rspamd_map_add_from_ucl: added map from ucl
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_init_lua_filters: init lua module whitelist
2017-12-20 04:04:00 #24032(main) <6e418n>; cfg;
rspamd_map_parse_backend: map '/var/lib/rspamd/rspamd_dynamic' is not
found, but it can be loaded automatically later
2017-12-20 04:04:00 #24032(main) <daz6fz>; map; rspamd_map_add: added
map /var/lib/rspamd/rspamd_dynamic

Aki

unread,
Dec 19, 2017, 2:45:47 PM12/19/17
to rspamd
There is no docs how to disable replies module so I tried add enabled=false to /etc/rspamd/local.d/replies.conf

With 4 symbols and replies disabled I find this error now:

task; lua_metric_symbol_callback: call to (SETTINGS_CHECK) failed (2): /usr/share/rspamd/lua/url_redirector.lua:260: attempt to index local 'url' (a nil value); trace: [1]:{/usr/share/rspamd/lua/url_redirector.lua:260 - <unknown> [Lua]};

Vsevolod Stakhov

unread,
Dec 19, 2017, 2:47:22 PM12/19/17
to Aki, rspamd
Can you disable url_redirector module? It gets enabled if you define a
global Redis server...

Aki

unread,
Dec 19, 2017, 3:11:20 PM12/19/17
to rspamd

making file local.d/url_redirector.conf with enabled=false and no more errors in the logs.

Docs say url_redirector module is disabled unless SURBL is configured, is this no longer the case?
Module docs say:
"For it to be enabled, redirector_hosts_map must be set in SURBL configuration"
 

Vsevolod Stakhov

unread,
Dec 19, 2017, 4:37:17 PM12/19/17
to Aki, rspamd
Thank you, I have the vector to investigate now. I'll keep you updated.
> --
> You received this message because you are subscribed to the Google Groups
> "rspamd" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to rspamd+un...@googlegroups.com.
> Visit this group at https://groups.google.com/group/rspamd.


Reply all
Reply to author
Forward
0 new messages