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

Aste aste at sveiks.lv
Mon Sep 13 14:05:48 UTC 2021


Hello Faisal,

Tuesday, August 31, 2021, 1:45:56 AM, you wrote:

FM> Hi there,

FM> If you remove reporting = true; it should work. You need to replace it by /enabled = true;/ inside the /reporting/ array which you already have.
FM> |# local.d/dmarc.conf reporting { # Required attributes enabled = true; # Enable reports in general|

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]};

sometimes  I getting errors for misconfigured domains like

cannot resolve ******
Cannot process reports for domain *****

So some parts of script is working, but no emails was sent, and  always getting  that error "call to rspamadm lua script failed" at the end.

-- 
Best regards,
 Aste                            mailto:aste at sveiks.lv

FM> For more info on the new parameters, check out the docs page at https://rspamd.com/doc/modules/dmarc.html#reporting

FM> On 8/23/21 8:33 AM, Aste wrote:
>> Hi,
>>
>> Seams that new (3.0 rspamd) DMARC report code doesnt't load config
>>
>> running  "rspamadm dmarc_report" returns
>> "dmarc reporting is not enabled, exiting"
>>
>> dmarc_settings = rspamd_config:get_all_opt('dmarc')  returns nill
>> located in  rspamd/lualib/rspamadm/dmarc_report.lua
>>
>> configdump founds dmarc section without problems
>>
>> rspamadm configdump  dmarc
>> *** Section dmarc ***
>> servers = "192.168.x.x:6379";
>> actions {
>>      quarantine = "add_header";
>>      reject = "reject";
>> }
>> reporting = true;
>> reporting {
>>      report_local_controller = false;
>>      msgid_from = "rspamd";
>>      enabled = true;
>>      keys_expire = 172800;
>>      domain = "*******";
>>      max_entries = 1000;
>>      from_name = "DMARC reporting";
>>      smtp = "127.0.0.1";
>>      smtp_port = 25;
>>      email = "postmaster@**********";
>>      helo = "rspamd.localhost";
>>      org_name = "*********";
>> }
>>
>>    >




More information about the Users mailing list