{"id":19343,"date":"2016-08-26T07:53:03","date_gmt":"2016-08-26T12:53:03","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=19343"},"modified":"2022-12-07T10:44:50","modified_gmt":"2022-12-07T16:44:50","slug":"check-if-an-email-exists","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/","title":{"rendered":"Check if an Email Exists"},"content":{"rendered":"
<\/div>
\"check
Check if Email Exists<\/figcaption><\/figure>\n

\"checkIn this article, you’ll learn how to use the command line to Check if Email Exists<\/strong>, without sending an email. You don’t have to pay for any software or online services and you don’t have to send out test emails. You can do it all for free through the command line, without any limits on how many times you can do it!<\/p>\n

<\/p>\n

When you send an email to user@domain.com, the sending mail server will look up the MX record in DNS for ‘domain.com’ and if one or more MX records are found, the sending mail server will try to deliver the email to the mail server specified in the domain.com MX record.<\/p>\n

How to Check if an Email Exists<\/h2>\n

Let’s try to verify if the address someuser@gmail.com exists or not. First, we need to find the MX records associated with the recipient’s domain, in our case that is gmail.com. We will use a DNS lookup utility called dig which is installed on most Linux systems. At the command prompt, type:<\/p>\n

$ dig gmail.com MX<\/pre>\n

The output should look something like this:<\/p>\n

; <<>> DiG 9.8.2rc1-RedHat-9.8.2-0.47.rc1.el6 <<>> gmail.com MX @8.8.8.8\r\n;; global options: +cmd\r\n;; Got answer:\r\n;; - > >HEADER< < - opcode: QUERY, status: NOERROR, id: 32294\r\n;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0\r\n\r\n;; QUESTION SECTION:\r\n;gmail.com.                     IN      MX\r\n\r\n;; ANSWER SECTION:\r\ngmail.com.              3599    IN      MX      10 alt1.gmail-smtp-in.l.google.com.\r\ngmail.com.              3599    IN      MX      20 alt2.gmail-smtp-in.l.google.com.\r\ngmail.com.              3599    IN      MX      30 alt3.gmail-smtp-in.l.google.com.\r\ngmail.com.              3599    IN      MX      40 alt4.gmail-smtp-in.l.google.com.\r\ngmail.com.              3599    IN      MX      5 gmail-smtp-in.l.google.com.\r\n\r\n;; Query time: 20 msec\r\n;; SERVER: 8.8.8.8#53(8.8.8.8)\r\n;; WHEN: Fri Aug 26 10:13:19 2016\r\n;; MSG SIZE  rcvd: 150\r\n;<\/pre>\n

We can notice that there are multiple MX records each with a different preference level value. The smaller the value, the higher the priority. The sending server will first try to deliver the email to the server with the highest priority and in our case, that is ‘gmail-smtp-in.l.google.com’<\/p>\n

Next, we need to connect to the ‘gmail-smtp-in.l.google.com’ mail server on port 25 (SMTP) to confirm the validity of the someuser@gmail.com email address. For this, we can use either telnet or netcat. Both tools are available from the software repositories of most Linux distributions.<\/p>\n

$ nc gmail-smtp-in.l.google.com 25 # or telent gmail-smtp-in.l.google.com 25\r\n220 mx.google.com ESMTP a12si21630825itb.5 - gsmtp\r\n<\/pre>\n

To start the conversation type HELO. Some servers also accept EHLO in place of HELO.<\/p>\n

HELO mydomain.com\r\n250 mx.google.com at your service<\/pre>\n

Type: mail from:<name@mydomain.com><\/p>\n

mail from:<name@mydomain.com>\r\n250 2.1.0 OK v72si21823782itb.85 - gsmtp<\/pre>\n

If the server responds with “250”, it means that we can proceed further. Next, type: rcpt to:<someuser@gmail.com><\/p>\n

rcpt to:<someuser@gmail.com>\r\n250 2.1.5 OK v72si21823782itb.85 - gsmtp<\/pre>\n

The server response will show us whether the email address “someuser@gmail.com” is valid or not.
\nIf you get “250 OK” it means that the email address exists.<\/p>\n

If you get a response of “550” as shown below, it means that email account that you tried to reach does not exist.<\/p>\n

rcpt to:<someuser2345@gmail.com>\r\n550-5.1.1 The email account that you tried to reach does not exist. Please try\r\n550-5.1.1 double-checking the recipient's email address for typos or\r\n550-5.1.1 unnecessary spaces. Learn more at\r\n550 5.1.1  https:\/\/support.google.com\/mail\/answer\/6596 y18si12470464ioi.55 - gsmtp\r\n<\/pre>\n

That\u2019s it! We hope you found this as useful as we did.<\/p>\n

Please note that if you do this repeatedly from the same IP it may lead to a banned IP. Use with caution.<\/p>\n

If you have any questions on how to Check if Email Exists, feel free to comment below or sign up for our hosting services<\/a> and contact our EPIC Support Team<\/a>. They are available 24\/7 and they will take care of your request immediately.<\/p>\n


\n

PS<\/span><\/strong>. If you liked this post please share it with your friends on the social networks using the sharing buttons or simply leave a reply below. Thanks.<\/p>\n","protected":false},"excerpt":{"rendered":"

In this article, you’ll learn how to use the command line to Check if Email Exists, without sending an email. … <\/p>\n

Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":28719,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1706,21],"tags":[127],"yoast_head":"\nCheck if an Email Exists - RoseHosting<\/title>\n<meta name=\"description\" content=\"Check if an Email Exists - RoseHosting\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Check if an Email Exists - RoseHosting\" \/>\n<meta property=\"og:description\" content=\"Check if an Email Exists - RoseHosting\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2016-08-26T12:53:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-12-07T16:44:50+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/check-if-email-exists.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"371\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"Check if an Email Exists\",\"datePublished\":\"2016-08-26T12:53:03+00:00\",\"dateModified\":\"2022-12-07T16:44:50+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/\"},\"wordCount\":502,\"commentCount\":2,\"publisher\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/check-if-email-exists.jpg\",\"keywords\":[\"email\"],\"articleSection\":[\"Email Servers\",\"Tips and Tricks\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/\",\"name\":\"Check if an Email Exists - RoseHosting\",\"isPartOf\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/check-if-email-exists.jpg\",\"datePublished\":\"2016-08-26T12:53:03+00:00\",\"dateModified\":\"2022-12-07T16:44:50+00:00\",\"description\":\"Check if an Email Exists - RoseHosting\",\"breadcrumb\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/#primaryimage\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/check-if-email-exists.jpg\",\"contentUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/check-if-email-exists.jpg\",\"width\":742,\"height\":371,\"caption\":\"Check if Email Exists\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.rosehosting.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Check if an Email Exists\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#website\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/\",\"name\":\"RoseHosting\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/RoseHosting\",\"https:\/\/x.com\/rosehosting\",\"https:\/\/www.linkedin.com\/in\/rosehosting\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/09271207587f897ab46faaed9b355252?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/09271207587f897ab46faaed9b355252?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\/\/www.rosehosting.com\",\"https:\/\/www.facebook.com\/rosehosting.helpdesk\"],\"url\":\"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Check if an Email Exists - RoseHosting","description":"Check if an Email Exists - RoseHosting","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/","og_locale":"en_US","og_type":"article","og_title":"Check if an Email Exists - RoseHosting","og_description":"Check if an Email Exists - RoseHosting","og_url":"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2016-08-26T12:53:03+00:00","article_modified_time":"2022-12-07T16:44:50+00:00","og_image":[{"width":742,"height":371,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/check-if-email-exists.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"Check if an Email Exists","datePublished":"2016-08-26T12:53:03+00:00","dateModified":"2022-12-07T16:44:50+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/"},"wordCount":502,"commentCount":2,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/check-if-email-exists.jpg","keywords":["email"],"articleSection":["Email Servers","Tips and Tricks"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/","url":"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/","name":"Check if an Email Exists - RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/check-if-email-exists.jpg","datePublished":"2016-08-26T12:53:03+00:00","dateModified":"2022-12-07T16:44:50+00:00","description":"Check if an Email Exists - RoseHosting","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/check-if-email-exists.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2018\/10\/check-if-email-exists.jpg","width":742,"height":371,"caption":"Check if Email Exists"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/check-if-an-email-exists\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Check if an Email Exists"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"]},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/09271207587f897ab46faaed9b355252?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/09271207587f897ab46faaed9b355252?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/19343"}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=19343"}],"version-history":[{"count":3,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/19343\/revisions"}],"predecessor-version":[{"id":43775,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/19343\/revisions\/43775"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/28719"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=19343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=19343"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=19343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}