Skip to content

Commit

Permalink
fix: fixed denylist issue
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Dec 15, 2024
1 parent c6dfb48 commit cb700ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion helpers/on-data-mx.js
Original file line number Diff line number Diff line change
Expand Up @@ -729,7 +729,11 @@ async function forward(recipient, headers, session, raw) {
// then wait until we're done iterating over RCPT TO values
//
try {
await isDenylisted(session.attributes, this.client, this.resolver);
await isDenylisted(
[recipient.webhook || recipient.to[0], ...session.attributes],
this.client,
this.resolver
);
} catch (err) {
// store a counter
if (err instanceof DenylistError)
Expand Down

0 comments on commit cb700ed

Please sign in to comment.