diff --git a/dashboard/src/components/MailDomainStatus.vue b/dashboard/src/components/MailDomainStatus.vue index 6326f2266..128559844 100644 --- a/dashboard/src/components/MailDomainStatus.vue +++ b/dashboard/src/components/MailDomainStatus.vue @@ -153,21 +153,26 @@ onMounted(async () => {   {{ key === 'rbl4' ? 'IPv4' : 'IPv6' }} {{ $t('email.smtpStatus.rblCheck') }}
-
IP: {{ domainStatus[key].ip }}
+
IP: {{ domainStatus[key].ip }}
+
{{ domainStatus[key].message }}
- {{ domainStatus[key] }}
+ +
{{ server.name }} +   + {{ server.txtRecords.join('. ') }} + No TXT Records
diff --git a/src/mail.js b/src/mail.js index 7eb9ee023..319f6001b 100644 --- a/src/mail.js +++ b/src/mail.js @@ -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)}`);