Skip to content

Commit

Permalink
fix: added bounce PTR check
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Feb 26, 2025
1 parent 4729ae3 commit b3e433c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion helpers/get-bounce-info.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ function getBounceInfo(err) {
bounceInfo.action = 'defer';
}

if (response.includes('PTR record') && response.includes(IP_ADDRESS)) {
if (
response.includes('PTR record') &&
(response.includes('missing PTR records') || response.includes(IP_ADDRESS))
) {
bounceInfo.action = 'defer';
bounceInfo.category = 'network';
}
Expand Down

0 comments on commit b3e433c

Please sign in to comment.