Advanced

How to check if an email address really exists

Posted by RoseHosting on · 2 comments
RoseHosting.com; By RoseHosting
Mail this story
Print this story

In this article, you’ll learn how to use the command line to verify whether a specific email address exists or not, without sending an email.

In this article, you’ll learn how to use the command line to verify whether a specific email address exists or not, 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!

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.

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

Full Story

  Nav
» Read more about: Groups: Linux

» Get new stories by e-mail: nightly or as they are published

« Return to the newswire homepage

  Related stories
» More like this

Comments (2)

First: Many ISPs block port 25. So, it's likely that you will not be able to perform Step #2.

Second: This will only work if there is no 'catchall' account configured... and even if there isn't one configured, the email server might be configured to silently drop unknown addressees.

So, it's possible that connecting directly to the SMTP will not yield any useful results.
> So, it's possible that connecting directly to the SMTP will not yield any useful results.

Not just possible, but likely in my experience. The headline is also misleading. When you connect to port 25 on an email server you are in effect sending an email, whether you complete the email or not.

Post a comment

A free account is needed to post. Write your comment here first: your text is kept in this browser while you sign up or log in, and is waiting for you when you come back.

Your message:
|||||
10
Markdown: **bold**, *italic*, [text](https://link), - lists, > quotes, $x^2$ for math. Formatting help

Sign up and post (it is free)  or  Log in and post