mail: log error
This commit is contained in:
@@ -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('.');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user