Skip to content

Commit

Permalink
spec(Email/Verifymail): MXレコードのドメインにもBANが適用されるように (#814)
Browse files Browse the repository at this point in the history
  • Loading branch information
u1-liquid authored Nov 14, 2024
1 parent a761b2e commit da43ac0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/backend/src/core/EmailService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -304,6 +304,12 @@ export class EmailService {
reason: 'mx',
};
}
if (json.mx_host?.some(host => this.utilityService.isBlockedHost(meta.bannedEmailDomains, host))) {
return {
valid: false,
reason: 'mx',
};
}

return {
valid: true,
Expand Down

0 comments on commit da43ac0

Please sign in to comment.