From 512285793eecd4b73c0e909f269c43a8d05a2880 Mon Sep 17 00:00:00 2001 From: titanism <101466223+titanism@users.noreply.github.com> Date: Sat, 14 Dec 2024 15:41:19 -0600 Subject: [PATCH] fix: added bounce attack check --- helpers/get-bounce-info.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/helpers/get-bounce-info.js b/helpers/get-bounce-info.js index 2ec07c07bc..c17194deb5 100644 --- a/helpers/get-bounce-info.js +++ b/helpers/get-bounce-info.js @@ -327,6 +327,15 @@ function getBounceInfo(err) { if (bounceInfo.category === 'spam' && err.truthSource === 'posteo.de') bounceInfo.category = 'blocklist'; + // bounce attack + // > 550 Suspected bounce attacks + // + if ( + response.includes('bounce attack') || + response.includes('misdirected bounce') + ) + bounceInfo.category = 'spam'; + return bounceInfo; }