Hello,
I tryed to use "action = "discard" in the spamtrap module, but seems this module is not accepting the "discard" action.
From logs:
======================================================================================================
2017-11-18 14:17:52 #16445(rspamd_proxy) lua_redis_push_data: call to callback failed: /usr/share/rspamd/lua/spamtrap.lua:54: invalid arguments
======================================================================================================
That line 54 have the following:
======================================================================================================
if settings['action'] then
task:set_pre_result(settings['action'],
string.format('spamtrap found: <%s>', rcpt))
end
======================================================================================================
In the section of Method task:set_pre_result:
======================================================================================================
Method task:set_pre_result(action, description)
Sets pre-result for a task. It is used in pre-filters to specify early result of the task scanned.
If a pre-filter sets some result, then further processing may be skipped.
For selecting action it is possible to use global table rspamd_actions or a string value:
reject: reject message permanently
add header: add spam header
rewrite subject: rewrite subject to spam subject
greylist: greylist message
accept or no action: whitelist message
======================================================================================================
There are any similar action, to silently discard E-mails..??
Regards,
Dede