SMTP Enumeration Using VRFY and EXPN Commands
During a penetration test, a tester uses the SMTP VRFY command against a mail server. The server responds with '252 Cannot VRFY user, but will accept message' for most usernames. Which action should the tester take to enumerate valid email addresses more effectively?
Quick Answer
The correct action is to use the EXPN command to expand mailing lists and verify addresses. This works because the SMTP VRFY command, which checks if a specific user exists, is often restricted by modern mail servers; a response like '252 Cannot VRFY user, but will accept message' indicates that VRFY is disabled or deliberately obfuscated, but the server still supports the EXPN command. EXPN reveals the actual members of a mailing list or alias, allowing you to enumerate valid email addresses indirectly by querying known or guessed list names. On the Certified Ethical Hacker CEH exam, this scenario tests your understanding of SMTP enumeration techniques and the distinction between VRFY and EXPN—a common trap is assuming VRFY is the only option when it fails. Remember the memory tip: "If VRFY is denied, EXPN is your guide to who's inside."
⚠ Common exam trap
Many candidates assume a '252' response to VRFY means the user does not exist, when in fact it indicates VRFY is disabled, and they overlook the EXPN command as an alternative enumeration method.
Answer choices
Why each option matters
Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.
Correct answer & explanation
✓
Use the EXPN command to expand mailing lists and verify addresses
The SMTP VRFY command is used to verify whether a specific user exists on the mail server. When the server responds with '252 Cannot VRFY user, but will accept message', it indicates that VRFY is disabled or restricted, but the server still supports the EXPN command. EXPN (Expand) reveals the actual members of a mailing list or alias, allowing the tester to enumerate valid email addresses indirectly by querying known or guessed list names.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✓
Use the EXPN command to expand mailing lists and verify addresses
Why this is correct
EXPN can reveal valid addresses from mailing lists; RCPT TO is another alternative.
- ✗
Use the NetBIOS nbtstat command to query the mail server
Why it's wrong here
NetBIOS enumeration does not provide email addresses.
- ✗
Run a brute-force attack on the SMTP service using Hydra
Why it's wrong here
Brute-force attacks target passwords, not email address enumeration.
- ✗
Switch to SNMP enumeration to gather email addresses
Why it's wrong here
SNMP enumeration targets SNMP service, not SMTP.
Go deeper
Related to this question
About these practice questions
This CEH question is part of Courseiva's 870-question bank — original exam-style content with full explanations and wrong-answer analysis, never real exam questions or exam dumps. Learn why practice questions differ from exam dumps →
Same concept, more angles
2 more ways this is tested on CEH
These questions test the same concept from different angles. Work through them to make sure you can recognise it however the exam phrases it.
Variation 1. Which TWO of the following are valid SMTP enumeration commands that can be used to discover valid email addresses? (Select 2)
medium- A.HELO
- B.RCPT TO
- ✓ C.EXPN
- D.ATRN
- ✓ E.VRFY
Why C: EXPN is a valid SMTP command that requests the server to expand a mailing list or alias, revealing the individual email addresses that belong to it. VRFY is another valid SMTP command that requests the server to verify if a mailbox exists for a given user. Both commands are useful for discovering valid email addresses without sending a message, as defined in RFC 821.
Variation 2. A penetration tester uses the SMTP commands VRFY and EXPN on a mail server. What is the tester MOST likely trying to accomplish?
medium- ✓ A.To enumerate valid email addresses and distribution lists
- B.To extract email content from the server
- C.To perform a mail relay attack
- D.To test for open relay
Why A: The VRFY command asks the mail server to verify whether a given email address exists, while EXPN requests the members of a mailing list or alias. By issuing these commands, the tester can enumerate valid user accounts and distribution lists on the server, which is a key step in building a target list for further attacks such as password guessing or phishing.
JA
Written by Johnson Ajibi, MSc IT Security
Senior Network & Security Engineer · founder of Courseiva
This CEH practice question is part of Courseiva's free EC-Council certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the CEH exam.