RSPAMD DMARC script fails

Issue #973 resolved
Oscar Meier created an issue

Hi guys

The /usr/share/rspamd/plugins/dmarc.lua script throws the following error (visible in the history of the RSPAMD UI at /admin/rspamd/#history) if the System settings > Spam & virus checks > DMARC > Send reports checkbox is checked:

init of /usr/share/rspamd/plugins/dmarc.lua failed: /usr/share/rspamd/plugins/dmarc.lua:503: attempt to index field 'reporting' (a boolean value); trace: [1]:{/usr/share/rspamd/plugins/dmarc.lua:503 - [main]};

If I uncheck it I get the following error:

init of /usr/share/rspamd/plugins/dmarc.lua failed: /usr/share/rspamd/plugins/dmarc.lua:519: attempt to index field 'reporting' (a boolean value); trace: [1]:{/usr/share/rspamd/plugins/dmarc.lua:519 - [main]};

It seems that the Send reports checkbox assigns a boolean value to the reporting settings which is not allowed anymore - it should be an object:
https://github.com/rspamd/rspamd/blob/master/src/plugins/lua/dmarc.lua#L527-L528

Therefore the DMARC spam filter does not work as expected.

Docker image: analogic/poste.io:2.3.11

Comments (1)

  1. Log in to comment