- In this example we will test for the Email address [email protected], replace the gmail Email address with the email address you want to test
- Open the command line/command promt and type in the following command
nslookup -type=mx gmail.com
This command will list the MX records of the gmail domain eg.
Server: 10.0.2.2 Address: 10.0.2.2#53 Non-authoritative answer: gmail.com mail exchanger = 5 gmail-smtp-in.l.google.com. gmail.com mail exchanger = 10 alt1.gmail-smtp-in.l.google.com. gmail.com mail exchanger = 20 alt2.gmail-smtp-in.l.google.com. gmail.com mail exchanger = 30 alt3.gmail-smtp-in.l.google.com. gmail.com mail exchanger = 40 alt4.gmail-smtp-in.l.google.com. Authoritative answers can be found from: alt1.gmail-smtp-in.l.google.com internet address = 126.96.36.199 alt3.gmail-smtp-in.l.google.com internet address = 188.8.131.52 alt4.gmail-smtp-in.l.google.com internet address = 184.108.40.206 alt2.gmail-smtp-in.l.google.com internet address = 220.127.116.11 gmail-smtp-in.l.google.com internet address = 18.104.22.168
- Select one of the servers listed in the list of MX records and pretend to send a message to that server from your local machine
- After the last command entered, the server will respond with a message whether the email address exist/is valid or not e.g.
250 2.1.5 OK o15si4900954fal.31 //For success
The email account that you tried to reach does not exist. //Failure
Image Credits: Photo by Isis França on Unsplash.