diff --git a/packages/backend/src/core/EmailService.ts b/packages/backend/src/core/EmailService.ts index 79e6ea4ef..1852536a8 100644 --- a/packages/backend/src/core/EmailService.ts +++ b/packages/backend/src/core/EmailService.ts @@ -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,