Closed lnedry closed 9 months ago
Try one of two things (which in the end, do the same thing):
config/helo.checks.ini
and set [main] dns_timeout=28
or
apply this patch:
diff --git a/plugins/helo.checks.js b/plugins/helo.checks.js
index b5a32147..bbe0f4ef 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}.`;
Thanks, Matt!
I presume that solved the problem for you. If yes, a PR should be submitted with this change.
The 28 second timeout did not resolve the issue.
Haraka 3.0.3 and Node v20.15.0
Aug 5 01:12:29 mx haraka[3652129]: [ERROR] [-] [Error]
Aug 5 01:12:29 mx haraka[3652129]: [CRIT] [-] [core] Error: timeout resolving: o1988.em.email.learnfromaxons.com.
Aug 5 01:12:29 mx haraka[3652129]: [CRIT] [-] [core] at Timeout._onTimeout (/etc/haraka/plugins/helo.checks.js:501:21)
Aug 5 01:12:29 mx haraka[3652129]: [CRIT] [-] [core] at listOnTimeout (node:internal/timers:573:17)
Aug 5 01:12:29 mx haraka[3652129]: [CRIT] [-] [core] at process.processTimers (node:internal/timers:514:7)
Aug 5 01:12:29 mx haraka[3652129]: [NOTICE] [-] [core] Shutting down
Aug 5 01:12:29 mx haraka[3652114]: [NOTICE] [-] [core] worker 4 exited with error code: 1
Aug 5 01:12:29 mx haraka[3652114]: [NOTICE] [-] [core] worker started worker=26 pid=3820020
Describe the bug
When this plugin has a timeout, it causes a Haraka worker to crash.
Expected behavior
This plugin should not cause a crash.
Observed behavior
System Info:
Additional context
The name servers at exacttarget.com were having some problems for a few hours this morning.