Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't validate emails except from gmail #7

Open
MahbbRah opened this issue Dec 3, 2020 · 18 comments
Open

Doesn't validate emails except from gmail #7

MahbbRah opened this issue Dec 3, 2020 · 18 comments

Comments

@MahbbRah
Copy link

MahbbRah commented Dec 3, 2020

Yahoo, aol, outlook and so on domain won't validate, nobody yet able to make a package that validate those.

@mfbx9da4 mfbx9da4 changed the title Doesn't validate emails excet from gmail Doesn't validate emails except from gmail Dec 3, 2020
@mfbx9da4
Copy link
Owner

mfbx9da4 commented Dec 3, 2020

Sorry what do you mean doesn't validate them?

What does it return? What do you expect it to return?

@0xR
Copy link

0xR commented Dec 13, 2020

it always fails the smtp check for outlook.com and office365 mailboxes

even though the email addresses I tried are valid

@Enuzo
Copy link

Enuzo commented Dec 23, 2020

Hello,
It returns the following error message:
Uncaught Error: Cannot find module 'dns'
webpackMissingModule dns.js:16
js dns.js:16

@elderapo
Copy link

Hello,
It returns the following error message:
Uncaught Error: Cannot find module 'dns'
webpackMissingModule dns.js:16
js dns.js:16

Don't think this error is relevant to this issue... Are you trying to use deep-email-validator from the browser? If so it won't work because the browser doesn't have dns module (it's a NodeJS only thing).

@mfbx9da4
Copy link
Owner

@elderapo is correct will ad to readme - @Enuzo this will not work in the browser and your comment is unrelated.

@Enuzo
Copy link

Enuzo commented Dec 25, 2020

Hello,
It returns the following error message:
Uncaught Error: Cannot find module 'dns'
webpackMissingModule dns.js:16
js dns.js:16

Don't think this error is relevant to this issue... Are you trying to use deep-email-validator from the browser? If so it won't work because the browser doesn't have dns module (it's a NodeJS only thing).

You're correct. Thanks for the response.

@ganeshmani
Copy link

It's not working for me on the server-side too. especially, outlook email validation

@mfbx9da4
Copy link
Owner

Yeah there seem to be some issues with outlook validation.

@gcleaves
Copy link

When validating a known and working Yahoo address, I get this response: "The mail address that you specified was not syntactically correct."

@FritzAxel
Copy link

FritzAxel commented May 3, 2021

Hi guys, did you get the solution? It doesnt validate emails that contains @hotmail.com in my case.
That's the response of validate function:

{
    valid: false,
    validators: {
      regex: { valid: true },
      typo: { valid: true },
      disposable: { valid: true },
      mx: { valid: true },
      smtp: { valid: false, reason: 'Mailbox not found.' }
    },
    reason: 'smtp'
}

@jarthur22
Copy link

Was this ever solved @mfbx9da4 ? Trying to find a validation solution for work and will have to go with something else if this is still an issue.

@mfbx9da4
Copy link
Owner

Hi I've not had time to work on this recently. Looks to be related to smtps.

@FritzAxel
Copy link

This is not a solution, but to keep validating gmail emails i use the "validate" like this:

await validate({
    email: email,
    sender: email,
    validateRegex: true,
    validateMx: true,
    validateTypo: true,
    validateDisposable: true,
    validateSMTP: email.includes('@gmail.com'),
  });

@Vasrig
Copy link

Vasrig commented Nov 16, 2021

Hello,

I'm trying to implement verification for email from yahoo, icloud servers - but when I send the DATA command I can't send the next msg command.

If anyone can help me.

const commands = [
helo ${exchange}\r\n,
mail from: <${sender}>\r\n,
rcpt to: <${recipient}>\r\n,
DATA\r\n,
This is a test message.\r\n,
.\r\n,
];

220 mtaproxy407.free.mail.bf1.yahoo.com ESMTP ready
250 mtaproxy407.free.mail.bf1.yahoo.com
250 sender [email protected] ok
250 recipient [email protected] ok
354 go ahead

STOP HERE WITH TIMEOUT
THE NEXT COMANDO IS
This is a test message.\r\n,
.\r\n,

@copostic
Copy link

Some update on this ?

@pH-7
Copy link

pH-7 commented Sep 27, 2023

@mfbx9da4 I believe validateSMTP should ideally be disabled by default (if you want me to raise a PR for it, just let me know).

It seems that only a handful of SMTP servers permit SMTP connection smoothly, and its success is contingent upon the IP reputation.

@larose89
Copy link

Try adding the following code to the options to whitelist TLD domains
additionalTopLevelDomains: [ "com", "com.au", "com.tw", "ca", "co.nz", "co.uk", "de", "fr", "it", "ru", "net", "org", "edu", "gov", "jp", "nl", "kr", "se", "eu", "ie", "co.il", "us", "at", "be", "dk", "hk", "es", "gr", "ch", "no", "cz", "in", "net", "net.au", "info", "biz", "mil", "co.jp", "sg", "hu", "uk", "co.id" ]

@savaliyanidhi
Copy link

savaliyanidhi commented Apr 9, 2024

libero.it domain not working with this additionalTopLevelDomains also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests