From 3c4e4a89a4a6f3ff3ec4dc76de5e21cf5b6c0d69 Mon Sep 17 00:00:00 2001 From: lnedry Date: Thu, 14 Dec 2023 09:17:20 -0500 Subject: [PATCH 1/2] 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}.`; From 4cf1e98a4eca5e3c5d1451733f3ec7b8b2b01628 Mon Sep 17 00:00:00 2001 From: lnedry Date: Thu, 14 Dec 2023 09:18:18 -0500 Subject: [PATCH 2/2] Update helo.checks.ini Reduced DNS timeout to prevent Haraka crash. --- config/helo.checks.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/helo.checks.ini b/config/helo.checks.ini index e53a54b05..7da5080af 100644 --- a/config/helo.checks.ini +++ b/config/helo.checks.ini @@ -1,6 +1,6 @@ ; disable checks or reject for each test if you are worried about strictness -;dns_timeout=30 +;dns_timeout=28 [check] ; match_re=true