diff --git a/CHANGES b/CHANGES index e420e73c0..283f739be 100644 --- a/CHANGES +++ b/CHANGES @@ -2578,6 +2578,7 @@ * du: fix crash when filesystem is cifs/nfs/sshfs * Start with a default to not fail if no swap is present * Fix bug in cert cleanup logic causing it to repeatedly cleanup +* Fix crash in RBL check [7.4.0] * Update base image to jammy diff --git a/src/mail.js b/src/mail.js index 7eeb22d1d..7848cb0e0 100644 --- a/src/mail.js +++ b/src/mail.js @@ -539,7 +539,7 @@ async function checkRblStatus(domain) { const [error2, txtRecords] = await safe(dig.resolve(flippedIp + '.' + rblServer.dns, 'TXT', DNS_OPTIONS)); result.txtRecords = error2 || !txtRecords ? 'No txt record' : txtRecords.map(x => x.join('')); - debug(`checkRblStatus: ${domain} (error: ${error2.message}) (txtRecords: ${JSON.stringify(txtRecords)})`); + debug(`checkRblStatus: ${domain} (error: ${error2?.message || null}) (txtRecords: ${JSON.stringify(txtRecords)})`); blacklistedServers.push(result); } @@ -590,7 +590,7 @@ async function getStatus(domain) { for (let i = 0; i < checks.length; i++) { const response = responses[i], check = checks[i]; if (response.status !== 'fulfilled') { - debug(`check ${check.what} was rejected. This is not expected`); + debug(`check ${check.what} was rejected. This is not expected. reason: ${response.reason}`); continue; }