Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Error creating DMARC report #3272

Closed
simon816 opened this issue Feb 21, 2020 · 3 comments
Closed

[BUG] Error creating DMARC report #3272

simon816 opened this issue Feb 21, 2020 · 3 comments
Labels

Comments

@simon816
Copy link

Going to do away with the bug report template because it'll be a pain to reproduce this with all debug info.

I found this error in the rspamd log file:

(rspamd_proxy) lua_redis_push_data: call to callback failed:
/usr/share/rspamd/plugins/dmarc.lua:864: invalid argument;
trace:
[1]:{[C]:-1 - escape_xml [C]};
[2]:{/usr/share/rspamd/plugins/dmarc.lua:864 - xmlf [Lua]}; 
[3]:{/usr/share/rspamd/plugins/dmarc.lua:912 - send_report_via_email [Lua]};
[4]:{/usr/share/rspamd/plugins/dmarc.lua:990 - callback [Lua]};
[5]:{/usr/share/rspamd/lualib/lua_redis.lua:985 - <unknown> [Lua]};

(added line breaks for readability)

rspamd version 2.3.1.
OS: CentOS Linux release 7.7.1908 (Core)

Domain in question: twitch.tv

_dmarc.twitch.tv.	300	IN	TXT	"v=DMARC1; p=reject; adkim=s; aspf=s; fo=1; ri=3600; rua=mailto:twitch@rua.agari.com; ruf=mailto:twitch@ruf.agari.com"

From a quick glance at the code, it could be a type error:
https://github.com/rspamd/rspamd/blob/2.3/src/plugins/lua/dmarc.lua#L1173
I wonder if the default for pct should be a string not a number. Though, don't know lua so I could be wrong on that.

@simon816 simon816 added the bug label Feb 21, 2020
@simon816
Copy link
Author

Just scanned through some older log files

Exactly the same traceback for these domains:

_dmarc.github.com.	3261	IN	TXT	"v=DMARC1; p=none; rua=mailto:dmarc@github.com"
_dmarc.google.com.	300	IN	TXT	"v=DMARC1; p=reject; rua=mailto:mailauth-reports@google.com"

Report sent successfully for:

_dmarc.amazon.com.	900	IN	TXT	"v=DMARC1; p=quarantine; pct=100; rua=mailto:dmarc-reports@bounces.amazon.com; ruf=mailto:dmarc-reports@bounces.amazon.com"

@vstakhov
Copy link
Member

Yes, it looks like this a type issue. I will fix it soon.

vstakhov added a commit that referenced this issue Feb 24, 2020
@simon816
Copy link
Author

simon816 commented Mar 7, 2020

Seems to be working fine on 2.4. Thanks.

@simon816 simon816 closed this as completed Mar 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants