Git Product home page Git Product logo

legit's People

Contributors

martyndavies avatar sharathm avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

legit's Issues

Beyond MX check

Domains like sharklasers.com are well-known to belong to non legit senders โ€“ guerrilla mail in this case. Is there any plan in legit to go beyond MX to include blacklists and whatnot? Else, any suggestions?

Best!

Script shows email as valid even if it fails when I manually send an email to the address

I tried sending an email directly to [email protected] and I received a failure to send. I then passed the email through the validation using nodejs implementation and it passed validation

test: function (req, res) {
    var checkEmail = require('legit');
    checkEmail('[email protected]', function(validation, addresses, err) {
      if (validation) {
          console.log('This is a real email that can accept emails!');
          console.log(JSON.stringify(addresses));
      } else {
          console.log('This domain cannot accept emails, you might want to remove it.');
      }
    });
  },

Gives Error: queryMx EREFUSED gmail.com on server

On localhost everything works great, but on a test server I get this:

Error validating email:  Error: Error: queryMx EREFUSED gmail.com
    at QueryReqWrap.dns.resolveMx [as callback] (/srv/node_modules/legit/src/index.js:13:16)
    at QueryReqWrap.onresolve [as oncomplete] (dns.js:213:10)

My usage:

async function getInvalidEmails(emails) {
	let invalidEmails = [];
	const promises = emails.map(async (email) => {
		await legit(email)
			.then((result) => {
				if (!result.isValid) invalidEmails.push(email);
			})
			.catch((err) => {
				console.log('Error validating email: ', err);
				invalidEmails.push(email);
			});
	});
  
	await Promise.all(promises);
	return invalidEmails;
}

Any reasons why this might happen?

dirty uninstall package process

Hi and thank you for your package module.
i installed and try legit, then uninstall it.

npm r legit
npm uninstall legit

but at start server time, there is an error with legit concerned message:

webpack is watching the files...
internal/modules/cjs/loader.js:638
    throw err;

Error: cannot find module 'legit'

there is no 'legit reference code in source code, i did search with "rg" linux tool application but nothing relative to legit in my code...
Maybe the process to uninstall the package has something wrong/dirty ?
How to fix that, please ?

Multiple emails

I like this. Do you have a recommendation on how to process, say, 1000 emails? Does this only check the domain MX records? Maybe I should dedupe the domain first and just check that?

MX resolving is inaccurate

Unfortunately this module can't resolve all legit domains. For example orangelv.com is considered unresolved despite the fact that it has MX records.
The error says:
{ [Error: queryMx ENODATA] code: 'ENODATA', errno: 'ENODATA', syscall: 'queryMx' }

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.