Is there a library for validating gmail's Variants

60 views
Skip to first unread message

Walter Peng

unread,
Apr 30, 2020, 1:05:43 PM4/30/20
to golang-nuts, Postfix users
Hello community,

We are running a small website which allow users registration with their
email.

Many users use gmail's variants to sign up the site, as we know,
foo...@gmail.com is equivalent to below similar:

foo...@googlemail.com
foo...@googlemail.com
foo...@gmail.com
fooba...@gmail.com
foo.ba...@gmail.com
...

Is there a library existing to validate all those variants to make sure
they are exactly the same account?

Thanks.

Andrey Tcherepanov

unread,
May 1, 2020, 7:51:16 PM5/1/20
to golang-nuts
I don't think it is a good idea to even try to figure it out. There are domains that using GSuite, or redirect to gmail as their mail service. They will use the same rules, but different host name.


On Thursday, April 30, 2020 at 11:05:43 AM UTC-6, Walter Peng wrote:
Hello community,

We are running a small website which allow users registration with their
email.

Many users use gmail's variants to sign up the site, as we know,
foo...@gmail.com is equivalent to below similar:

foo...@googlemail.com
foo...@googlemail.com
foo...@gmail.com
Reply all
Reply to author
Forward
0 new messages