-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: added general spam detection against our own IPs as we warm up I…
…P reputation
- Loading branch information
Showing
1 changed file
with
6 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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') || | ||
|