lua; dmarc.lua:990: Lookup error

10 views
Skip to first unread message

Patrick Pichon

unread,
Dec 12, 2017, 3:24:46 PM12/12/17
to rspamd
Hello,

Since few days , I have plenty of error message like that in my syslog !

dmarc is enabled and send_report is also enable.

Dec 12 20:58:01 mail-server rspamd[378]: (normal) <omgdku>; lua; dmarc.lua:990: Lookup error [nil._report._dmarc.pwnmail.fr]: query timed out
Dec 12 20:58:01 mail-server rspamd[378]: (normal) <omgdku>; lua; dmarc.lua:990: Lookup error [nil._report._dmarc.pwnmail.fr]: query timed out
Dec 12 20:58:01 mail-server rspamd[378]: (normal) <omgdku>; lua; dmarc.lua:990: Lookup error [nil._report._dmarc.pwnmail.fr]: server fail
Dec 12 20:58:01 mail-server rspamd[378]: (normal) <omgdku>; lua; dmarc.lua:990: Lookup error [nil._report._dmarc.pwnmail.fr]: server fail

Any ideas ?

Kind regards
Patrick

Andrew Lewis

unread,
Dec 13, 2017, 3:53:08 AM12/13/17
to rsp...@googlegroups.com
Hi,

> Since few days , I have plenty of error message like that in my syslog !
> dmarc is enabled and send_report is also enable.

Be careful about enabling reporting- it's not particularly finished or
well-tested & there are likely bugs, though it seemed mostly working
so far in my testing.

> Dec 12 20:58:01 mail-server rspamd[378]: (normal) <omgdku>; lua;
> dmarc.lua:990: Lookup error [nil._report._dmarc.pwnmail.fr]: query timed out

Leading "nil" here tells it's a bug.

> Any ideas ?

I'm not strongly convinced of reason for it which is troubling but I
can think of one. Maybe this patch helps:

diff --git a/src/plugins/lua/dmarc.lua b/src/plugins/lua/dmarc.lua
index 4a5a5be..5962644 100644
--- a/src/plugins/lua/dmarc.lua
+++ b/src/plugins/lua/dmarc.lua
@@ -1014,7 +1014,7 @@ if opts['reporting'] == true then
end
end
local t, nvdom = next(to_verify)
- if not t then
+ if not (t and nvdom) then
if next(reporting_addr) then
make_report()
else

Best,
-AL.

Reply all
Reply to author
Forward
0 new messages