Skip to content

Commit

Permalink
fix: added general spam detection against our own IPs as we warm up I…
Browse files Browse the repository at this point in the history
…P reputation
  • Loading branch information
titanism committed Dec 11, 2024
1 parent 6f637d3 commit a72690e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion helpers/get-bounce-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,12 @@ function getBounceInfo(err) {
bounceInfo.category = 'blocklist';
else if (response.includes('[email protected]'))
bounceInfo.category = 'blocklist';
else if (
else if (bounceInfo.category === 'spam' && response.includes(IP_ADDRESS)) {
//
// Message failed: 550-5.7.1 [121.127.44.56 19] Gmail has detected that this message is likely\n550-5.7.1 suspicious due to the very low reputation of the sending domain. To\n550-5.7.1 best protect our users from spam, the message has been blocked. For\n550-5.7.1 more information, go to\n550 5.7.1 https://support.google.com/mail/answer/188131 71dfb90a1353d-51750f8b609si2030842e0c.156
//
bounceInfo.category = 'blocklist'; // TODO: improve this, e.g. if it also contains "reputation"
} else if (
bounceInfo.category !== 'spam' &&
(response.includes('rate limited') ||
response.includes('reputation') ||
Expand Down

0 comments on commit a72690e

Please sign in to comment.