python-email-validator icon indicating copy to clipboard operation
python-email-validator copied to clipboard

False email validity check fails.

Open jcagpir opened this issue 1 year ago • 5 comments

I checked '[email protected]' (username and domain do not exist) with 'check_deliverability=True' and no error occurs.

jcagpir avatar Aug 23 '24 18:08 jcagpir

I think that's a real domain name (a major car manufacturer) so I would not expect the library to give an error. Are you expecting an error?

JoshData avatar Aug 23 '24 21:08 JoshData

Here are the results obtained online on several validation sites for"[email protected]":

https://verifalia.com/validate-email Invalid email address: "the mailbox for the email address does not exist."

https://captainverify.com/fr/mail-tester.html: "[email protected] est inconnue"

https://www.verifyemailaddress.org/fr/validation-d-email: " Nous pensons que [email protected] n'est pas valide La syntaxe d'adresse email est correcte MX enregistrement trouvé: mx2.imr.gm.com (Priorité 10) La connexion à mx2.imr.gm.com a fonctionné MX enregistrement trouvé: mx1.imr.gm.com (Priorité 10) Réponse du serveur: 550 #5.1.0 Address rejected."

https://www.mailverifier.io : "[email protected] : This email is INVALID — DO NOT SEND"

Thank you for your follow-up.

jcagpir avatar Aug 24 '24 08:08 jcagpir

Those sites seem to be purporting to check the username part of the address for deliverability. This library doesn't do that (please see the README for details).

JoshData avatar Aug 24 '24 10:08 JoshData

Thank you for your answer. Do you plan to introduce the check of the username part of the address for deliverability in your library in the future?

jcagpir avatar Aug 24 '24 17:08 jcagpir

As the README says, there is no reliable way to do it. So it is unlikely I would add it, and I'm not actively adding new features. But anything is possible!

JoshData avatar Aug 24 '24 19:08 JoshData