mail status: fix rbl display
This commit is contained in:
@@ -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)}`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user