Skip to content

Commit

Permalink
fix: fixed outlook misdirect bounce spam
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Jan 8, 2025
1 parent cc87db7 commit a36c01c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion helpers/is-arbitrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,11 @@ function isArbitrary(session, headers) {
// if from [email protected] and message is "Undeliverable: "
//
if (
session.originalFromAddress === '[email protected]' &&
(session.originalFromAddress === '[email protected]' ||
(session.resolvedClientHostname &&
session.resolvedClientHostname.endsWith(
'.outbound.protection.outlook.com'
))) &&
subject &&
subject.startsWith('Undeliverable: ')
)
Expand Down

0 comments on commit a36c01c

Please sign in to comment.