Git Product home page Git Product logo

Comments (5)

egulias avatar egulias commented on June 5, 2024

Hi Kirby.
The RFC's that specify email sintax are not necesarily implemented in full by all versions of all STMP servers.
If you are using v2, the domain validation was very loose in that it followed email's RFC rather than domain RFC 1035.
v3 is closer to RFC 1035 so it might come out as invalid, for instance.
But, even if by "formal" definition a domain or an email address is valid, is does not mean it will be accepted 100% of the times by all SMTP servers.

from emailvalidator.

Zenexer avatar Zenexer commented on June 5, 2024

RFC 1035 permits 1.1 as a valid name.

from emailvalidator.

KirbyDE avatar KirbyDE commented on June 5, 2024

Thanks for the reply.

I've tested v3 and it seems like [email protected] is reported as valid.

Could this be changed?

As far as I understand RFC 3696 an email ending in an all numeric TLD can't be valid:

There is an additional rule that essentially requires that top-level domain names not be all-numeric

from emailvalidator.

Zenexer avatar Zenexer commented on June 5, 2024

That additional rule is enforced by ICANN and only applies to public zones that they administer. You can most certainly have a zone within your own DNS system that is all-numeric.

There's nothing stopping an organization's internal email infrastructure from using and accepting [email protected]; it just won't be usable on the public internet via traditional, ICANN-administered DNS.

from emailvalidator.

Zenexer avatar Zenexer commented on June 5, 2024

Note that if you want to forbid 1.1, you can probably use DNSCheckValidation instead of or in addition to RFCValidation--although if your DNS resolver is capable of resolving zones other than those administered by ICANN, there's still a possibility it will be considered valid and that email can be delivered.

from emailvalidator.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.