From 3c4e4a89a4a6f3ff3ec4dc76de5e21cf5b6c0d69 Mon Sep 17 00:00:00 2001 From: lnedry Date: Thu, 14 Dec 2023 09:17:20 -0500 Subject: [PATCH] Update helo.checks.js Reduced DNS timeout to prevent Haraka from crashing. --- plugins/helo.checks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/helo.checks.js b/plugins/helo.checks.js index b5a32147c..bbe0f4efd 100644 --- a/plugins/helo.checks.js +++ b/plugins/helo.checks.js @@ -499,7 +499,7 @@ exports.get_a_records = async function (host) { err.code = dns.TIMEOUT; this.logerror(err); throw err; - }, (this.cfg.main.dns_timeout || 30) * 1000); + }, (this.cfg.main.dns_timeout || 28) * 1000); // fully qualify, to ignore any search options in /etc/resolv.conf if (!/\.$/.test(host)) host = `${host}.`;