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

Doesn't validate emails except from gmail

Open MahbbRah opened this issue 4 years ago • 18 comments

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

MahbbRah avatar Dec 03 '20 02:12 MahbbRah

Sorry what do you mean doesn't validate them?

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

mfbx9da4 avatar Dec 03 '20 10:12 mfbx9da4

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

even though the email addresses I tried are valid

0xR avatar Dec 13 '20 11:12 0xR

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

Enuzo avatar Dec 23 '20 12:12 Enuzo

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).

elderapo avatar Dec 23 '20 20:12 elderapo

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

mfbx9da4 avatar Dec 25 '20 12:12 mfbx9da4

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.

Enuzo avatar Dec 25 '20 13:12 Enuzo

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

ganeshmani avatar Jan 12 '21 14:01 ganeshmani

Yeah there seem to be some issues with outlook validation.

mfbx9da4 avatar Jan 12 '21 14:01 mfbx9da4

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

gcleaves avatar Feb 18 '21 11:02 gcleaves

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'
}

FritzAxel avatar May 03 '21 17:05 FritzAxel

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.

jarthur22 avatar May 11 '21 17:05 jarthur22

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

mfbx9da4 avatar May 12 '21 07:05 mfbx9da4

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'),
  });

FritzAxel avatar May 12 '21 13:05 FritzAxel

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,

Vasrig avatar Nov 16 '21 14:11 Vasrig

Some update on this ?

copostic avatar Jun 23 '22 09:06 copostic

@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.

pH-7 avatar Sep 27 '23 08:09 pH-7

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" ]

larose89 avatar Jan 31 '24 18:01 larose89

libero.it domain not working with this additionalTopLevelDomains also

savaliyanidhi avatar Apr 09 '24 03:04 savaliyanidhi