diff --git a/src/mail.js b/src/mail.js index 489804953..d5c699336 100644 --- a/src/mail.js +++ b/src/mail.js @@ -516,7 +516,11 @@ const RBL_LIST = [ // this function currently only looks for black lists based on IP. TODO: also look up by domain async function checkRblStatus(domain) { - const ip = await sysinfo.getServerIPv4(); + const [error, ip] = await safe(sysinfo.getServerIPv4()); + if (error) { + debug(`checkRblStatus: unable to determine server IPv4: ${error.message}`); + return { status: false, ip: null, servers: [] }; + } const flippedIp = ip.split('.').reverse().join('.');