Git Product home page Git Product logo

validemail's Introduction

ValidEmail

一个用于检测目标邮箱地址是否存在的Python程序,基于Ubuntu和Python 3.6.4开发。

原理说明

  1. 通过nslookup检查目标邮箱域名的MX记录;
  2. 与MX记录的服务器地址、端口建立连接,并通过SMTP扩展协议的ehlo命令建立连接;
  3. 通过mail FROM:<''>设置发送地址为空;
  4. 通过rcpt TO:<'email address'>探测服务器对邮箱地址的反馈信息,如返回代码是250则表示邮箱存在,如是550则表示邮箱不存在,个别邮件服务商用其他返回代码。

功能描述

只有一个功能,检测邮箱地址是否真实存在,存在则返回True,不存在则返回False。

应用场景

  • 批量群发邮件时,事先通过该程序过滤有效邮箱地址;
  • 在一些特殊情况下,结合字典对目标域名的邮箱进行猜测;

特别说明

  • 该程序修改自Python的validate_email模块,并进行了优化、简化;
  • 由于DNS模块的需要,该程序仅能运行于Linux环境。

validemail's People

Contributors

repoog avatar

Stargazers

不灭的焱 avatar Max avatar

Watchers

James Cloos avatar  avatar

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.