How to Check if an Email Address Really Exists Without Sending an Email

By on December 5th, 2017

How to Check if an Email Address Really Exists Without Sending an Email

Have you ever thought of checking the validity of an email address without sending an email? There are a number of online tools like, available to check if an email address really exists. There are even paid services for checking email validity. What if you don’t require any tools or paid services for checking the validity of email addresses before you actually send an email? In this tutorial, you will learn how to make use of the command line to check whether a particular email address exists or not, without sending an email. You can make unlimited email validity checks via command line and it won’t cost you a single penny.

You will find these email tools useful if you run a business organization or deals with sending a large number of emails on a day to day life. Many organizations send bulk emails by creating a mailing list/group. The necessary email addresses are added to these groups and bulk mails are send by a single click. You will receive email bounces if the emails are sent to invalid email addresses. To avoid these situations, you can always check the email addresses for validity before adding them to any email groups of mailing lists.

Let’s take a specific email address say “” for testing purposes and try to verify if the email address really exists or not. When you send an email to the specified email address “”, the sending mail server will look up the MX record for the domain “”.  We can use dig or nslookup command for DNS lookup to know the mail server details.

dig mx

The output should look something like this:

; <<>> DiG 9.10.3-P4-Ubuntu <<>> mx

;; global options: +cmd

;; Got answer:

;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 41105

;; flags: qr rd ra; QUERY: 1, ANSWER: 5, AUTHORITY: 0, ADDITIONAL: 0



;                     IN      MX


;; ANSWER SECTION:              5       IN      MX      20              5       IN      MX      40              5       IN      MX      30              5       IN      MX      10              5       IN      MX      5


;; Query time: 59 msec


;; WHEN: Sat Aug 12 12:11:39 IST 2017

;; MSG SIZE  rcvd: 150


You can also use nslookup utility to get the mail server details.

nslookup -q=mx

The output should look something like this:




Non-authoritative answer:       mail exchanger = 20       mail exchanger = 40       mail exchanger = 5       mail exchanger = 30       mail exchanger = 10

A number of MX records each with different priority values are listed in the DNS lookup for domain “”. From the above outputs, we could conclude that mails will be sent via mail server ‘’ since it is assigned higher priority than other mail servers. Please note that smaller the priority value higher is the priority.

Next, we need to connect to the high priority mail server on standard SMTP port 25 to confirm the validity of You can either use telnet or netcat tools to connect to the mail server on the desired port 25.

telnet 25


Connected to

Escape character is ‘^]’.

220 ESMTP g130si1474763pfc.186 – gsmtp

Type HELO or EHLO to start the conversation with the Gmail mail server.


250 at your service

Once the conversation has started enter the sender email address using ‘mail from’. Here I am using our test email account “” for sender address. Replace the specified test email address with your email address.

mail from:<>

250 2.1.0 OK x13si1491813pfi.574 – gsmtp

If the server responds with “250 OK” then we can proceed to the next step. Enter the recipient email address using ‘rcpt to’. Replace the test email address with your recipient email address.

rcpt to:<>

250 2.1.5 OK x13si1491813pfi.574 – gsmtp

The recipient email address is valid if the server responds with “250 OK”. You should get a server response of “550” as shown below if the recipient email address does not exist.

rcpt to:<>

550-5.1.1 The email account that you tried to reach does not exist. Please try

550-5.1.1 double-checking the recipient’s email address for typos or

550-5.1.1 unnecessary spaces. Learn more at

550 5.1.1 t3si1541957pfl.88 – gsmtp


That’s it! This is how you check whether an email address really exists via command line. I hope you have found this tutorial useful.


If you need any further help please do reach our support department.



2 Responses to “How to Check if an Email Address Really Exists Without Sending an Email”

  1. shaankar haritsa says: stopped E-mail services long back but I am getting many letters addressed to How to stop this?

    • Hello Shaankar,

      Greetings from InterServer support.

      Did you mean you are receiving emails from our billing? – If yes we could not find any account active using this email ID. If you mean emails sent from our server – We can confirm that the mail servers of reported domain are not with us. Instead I would check with your hosting/mail service provider:

      Have a great day.

Leave a Reply