From e75b3c2e3c027ae3fed4564e78d959c6be94a8e5 Mon Sep 17 00:00:00 2001 From: titanism <101466223+titanism@users.noreply.github.com> Date: Thu, 12 Dec 2024 03:37:13 -0600 Subject: [PATCH] fix: fixed recursive forwarding bug for denylisted users causing 100% cpu/memory on MX servers --- helpers/get-recipients.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helpers/get-recipients.js b/helpers/get-recipients.js index e2fa2b83fe..9ff6ccdead 100644 --- a/helpers/get-recipients.js +++ b/helpers/get-recipients.js @@ -464,7 +464,7 @@ async function getRecipients(session, scan) { // TODO: how does work with IMAP (?) // custom port support - if (recipient.addresses.length === 0 && recipient.port !== '25') { + if (recipient.addresses.length === 0 && recipient.port !== 25) { recipient.addresses.push({ to: recipient.address, host: parseHostFromDomainOrAddress(recipient.address)