From a4a1904fd533b5a5274439d413a2151fa2209279 Mon Sep 17 00:00:00 2001 From: Fatih AKTAS Date: Wed, 29 Jul 2026 10:12:00 -0400 Subject: [PATCH] Expand email alias domain lists Add fastmail.ca to the Fastmail domain set and myyahoo.com to the Yahoo domain set, so more equivalent addresses normalize to the same value before hashing. Both are confirmed to run on their provider's own mail platform with no third-party migration history. --- src/request/email.spec.ts | 10 ++++++++++ src/request/email.ts | 2 ++ 2 files changed, 12 insertions(+) diff --git a/src/request/email.spec.ts b/src/request/email.spec.ts index e4deb0ff..4bcb76d5 100644 --- a/src/request/email.spec.ts +++ b/src/request/email.spec.ts @@ -224,6 +224,11 @@ describe('Email()', () => { md5: md5('user@fastmail.com'), domain: 'user.fastmail.com', }, + { + email: 'alias@user.fastmail.ca', + md5: md5('user@fastmail.ca'), + domain: 'user.fastmail.ca', + }, { email: 'foo@bar.example.com', md5: md5('foo@bar.example.com'), @@ -234,6 +239,11 @@ describe('Email()', () => { md5: md5('foo@ymail.com'), domain: 'ymail.com', }, + { + email: 'test-alias@myyahoo.com', + md5: md5('test@myyahoo.com'), + domain: 'myyahoo.com', + }, { email: 'foo@example.com.com', md5: md5('foo@example.com'), diff --git a/src/request/email.ts b/src/request/email.ts index dee71a4f..0f28ca1e 100644 --- a/src/request/email.ts +++ b/src/request/email.ts @@ -168,6 +168,7 @@ export default class Email implements EmailProps { 'fastemailer.com': true, 'fastest.cc': true, 'fastimap.com': true, + 'fastmail.ca': true, 'fastmail.cn': true, 'fastmail.co.uk': true, 'fastmail.com': true, @@ -261,6 +262,7 @@ export default class Email implements EmailProps { }; private static readonly yahooDomains: { [key: string]: boolean } = { + 'myyahoo.com': true, 'y7mail.com': true, 'yahoo.at': true, 'yahoo.be': true,