|
|
|
|
|
|
|
|
local function check_host_cb_mx(_, to_resolve, results, err) |
|
|
local function check_host_cb_mx(_, to_resolve, results, err) |
|
|
task:inc_dns_req() |
|
|
task:inc_dns_req() |
|
|
if err and (err ~= 'requested record is not found' and err ~= 'no records with this name') then |
|
|
if err and (err ~= 'requested record is not found' and err ~= 'no records with this name') then |
|
|
rspamd_logger.errx(task, 'error looking up %s: %s', to_resolve, err) |
|
|
|
|
|
|
|
|
rspamd_logger.infox(task, 'error looking up %s: %s', to_resolve, err) |
|
|
end |
|
|
end |
|
|
if not results then |
|
|
if not results then |
|
|
task:insert_result('HFILTER_' .. symbol_suffix .. '_NORES_A_OR_MX', 1.0, |
|
|
task:insert_result('HFILTER_' .. symbol_suffix .. '_NORES_A_OR_MX', 1.0, |