mail status: fix rbl display

This commit is contained in:
Girish Ramakrishnan
2025-11-28 12:01:50 +01:00
parent 2a3110cd3d
commit 2c10ceba5b
2 changed files with 9 additions and 4 deletions

View File

@@ -580,7 +580,7 @@ async function checkRbl(type, mailDomain) {
const result = Object.assign({}, rblServer);
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(''));
result.txtRecords = error2 || !txtRecords ? [] : txtRecords.map(x => x.join(''));
debug(`checkRbl (${domain}) error: ${error2?.message || null} txtRecords: ${JSON.stringify(txtRecords)}`);