Spamtrap module

86 views
Skip to first unread message

Dedé Alves

unread,
Nov 18, 2017, 1:58:39 PM11/18/17
to rspamd
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
======================================================================================================

Checking the documentation at: https://rspamd.com/doc/lua/task.html#m0426b
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

Message has been deleted

Vsevolod Stakhov

unread,
Nov 20, 2017, 3:34:02 PM11/20/17
to Dedé Alves, rspamd
Why not accept these message and route it to /dev/null? Efficiently,
that's the same thing as discarding those messages.
> --
> 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
> <mailto:rspamd+un...@googlegroups.com>.
> Visit this group at https://groups.google.com/group/rspamd.

Dedé Alves

unread,
Nov 20, 2017, 3:37:19 PM11/20/17
to rspamd
Unfortunately, seems "reject" does not make bayes and fuzzy learn nothing:

========================================
SPAMTRAP(1)[ma...@domain.com]
FILENAME_BLACKLISTED(0)[jar]
ASN(0)[asn:999999, ipnet:ip.add.re.ss/24, country:BR]
========================================

Message has been deleted

Dedé Alves

unread,
Nov 20, 2017, 4:08:48 PM11/20/17
to rspamd
On Monday, November 20, 2017 at 6:34:02 PM UTC-2, vsevolod wrote:
Why not accept these message and route it to /dev/null? Efficiently,
that's the same thing as discarding those messages.


The documentation I listed above says:
==============================
accept or no action: whitelist message
==============================

The message should't be "whitelisted"..??!!

Dedé Alves

unread,
Dec 6, 2017, 8:53:33 PM12/6/17
to rspamd
Anyone could confirm this behavior, of spamtrap is whitelisting messages, if "no action" is used..??

Regards,
Netino


On Monday, November 20, 2017 at 6:34:02 PM UTC-2, vsevolod wrote:
Reply all
Reply to author
Forward
0 new messages