Explorar el Código

Change separators to commas to avoid issues with ipv6.

tags/1.0.0
Vsevolod Stakhov hace 8 años
padre
commit
38a6ceb5ff
Se han modificado 2 ficheros con 2 adiciones y 2 borrados
  1. 1
    1
      doc/markdown/modules/dmarc.md
  2. 1
    1
      src/plugins/lua/dmarc.lua

+ 1
- 1
doc/markdown/modules/dmarc.md Ver fichero

@@ -36,7 +36,7 @@ When you have this module enabled, it also adds symbols:

When a message violates DMARC policy, rspamd adds the following information to `redis` server:

unixtime:ip:spf_result:dkim_result
unixtime,ip,spf_result,dkim_result

where results are `true` or `false` meaning allow and reject values accordingly.
Unixtime and IP are inserted in text form. Keys are therefore `lists` in redis terminology.

+ 1
- 1
src/plugins/lua/dmarc.lua Ver fichero

@@ -56,7 +56,7 @@ local function dmarc_report(task, spf_ok, dkim_ok)
if not ip:is_valid() then
return nil
end
local res = string.format('%d:%s:%s:%s', task:get_date(0),
local res = string.format('%d,%s,%s,%s', task:get_date(0),
ip:to_string(), tostring(spf_ok), tostring(dkim_ok))
return res

Cargando…
Cancelar
Guardar