[Rspamd-Users] What's wrong with this?

Steve Witten caponecicero at gmail.com
Thu Feb 9 00:10:11 UTC 2023


On Wed, Feb 8, 2023 at 3:30 PM G.W. Haywood via Users <
users at lists.rspamd.com> wrote:

> Hi there,
>

<snip />

I got it to work!  My symbol definition:

rspamd_config.SW_TEST_SYMBOL = {
>   callback = function(task)
>     return true
>   end,
>   score = -0.1,
>   group = 'headers',
>   description = 'SW Test Symbol'
> }


It was defined in *$CONFDIR/local.d/headers_group.conf*.  Once I moved it
to *$CONFDIR/rspamd.local.lua, *it worked fine.

Next step is to implement an inclusion scheme so that I can put this stuff
in *$CONFDIR/local.d*

Another question, do you know how to return the auxiliary information as
part of the result?  For example (from the X-Rspamd-Status header:

DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]
>

*-0.50* is the score.  *[gmail.com <http://gmail.com>,none]* seems to be
extra textual information that is included in the header value.

Thanks in advance for all your help.

-- Steve


More information about the Users mailing list