[Rspamd-Users] v3.0 rspamd DMARC report code doesnt't load config

Michael Kliewe m.kliewe at team.mail.de
Mon Sep 20 20:39:41 UTC 2021


Hi,

Am 20.09.2021 um 19:05 schrieb Kyle A.:
> Aste,
>
> Did you get it resolved?
>
> Today I have upgraded V2.7 -> V3.0, updated the dmarc.conf, and I have 
> almost the exact same error you reported.  Mine says this:
>
> # rspamadm dmarc_report
> call to rspamadm lua script failed (2): 
> /usr/share/rspamd/lualib/rspamadm//dmarc_report.lua:258: invalid 
> argument: nil; trace: 
> [1]:{/usr/share/rspamd/lualib/rspamadm//dmarc_report.lua:258 - 
> process_report_entry [Lua]}; 
> [2]:{/usr/share/rspamd/lualib/rspamadm//dmarc_report.lua:507 - 
> prepare_report [Lua]}; 
> [3]:{/usr/share/rspamd/lualib/rspamadm//dmarc_report.lua:602 - 
> process_report_date [Lua]}; 
> [4]:{/usr/share/rspamd/lualib/rspamadm//dmarc_report.lua:679 - 
> <unknown> [Lua]};
>
> Upon further review, I think my error is character for character the 
> same as your error.  I do not understand and there is no help for this.

I also got this error when I first manually ran
sudo rspamadm dmarc_report
after upgrading from 2.7 to 3.0.2 on Ubuntu.

But:
One day later I ran it again manually:
sudo rspamadm dmarc_report -v
(with verbose mode on) and it was working fine, it sent 10 DMARC reports.

Maybe there was some old/invalid data in the redis storage, which is why 
the first invocation failed with "invalid argument: nil"?

Please do us all a favor and don't run the cronjob at exactly midnight. 
Choose a random time in a day, then rate-limits at recipient mailboxes 
will not be a problem, and server load is distributed. If you receive 
bounces because the recipient mailbox is over quota or does not exist, 
or does not accept attachments, try to contact the recipient somehow and 
tell them about the problem. We need to get those bounce-problems fixed 
together.

Michael


>
> On 9/13/2021 10:05 AM, Aste wrote:
>> Thank you it's solve  initial problem, bet reporting still doesn't 
>> work, now I getting error
>> Executing "rspamadm dmarc_report" results with error.
>>
>> call to rspamadm lua script failed (2): 
>> /usr/share/rspamd/lualib/rspamadm//dmarc_report.lua:258: invalid 
>> argument: nil; trace: 
>> [1]:{/usr/share/rspamd/lualib/rspamadm//dmarc_report.lua:258 - 
>> process_report_entry [Lua]}; 
>> [2]:{/usr/share/rspamd/lualib/rspamadm//dmarc_report.lua:507 - 
>> prepare_report [Lua]}; 
>> [3]:{/usr/share/rspamd/lualib/rspamadm//dmarc_report.lua:602 - 
>> process_report_date [Lua]}; 
>> [4]:{/usr/share/rspamd/lualib/rspamadm//dmarc_report.lua:679 - 
>> <unknown> [Lua]}; 



More information about the Users mailing list