A directory harvest attack (DHA) is an attempt to discover valid email addresses at a domain by sending messages to guessed recipients and observing how the mail system responds. Attackers can use the addresses that appear valid to build lists for spam. It does not require breaking into an employee’s mailbox; the exposure is in how the domain’s mail system handles recipient checks.
How a directory harvest attack works
When a sending server delivers email using SMTP, it identifies the intended recipient in an envelope command such as RCPT TO. The receiving server responds during that exchange. If its responses differ for real and nonexistent recipients, a sender may be able to infer which addresses exist.
As an Amazon Associate I earn from qualifying purchases.
- Guess recipients. An attacker tries likely addresses, which may include common names at the target domain.
- Observe mail-server responses. The attacker looks for differences that suggest the receiving system accepts one recipient but not another.
- Keep apparent matches. The guesses that seem valid can become a recipient list for unsolicited mail or spam. Cisco describes this pattern in its AsyncOS 13.5.1 guide.
The key weakness is recipient enumeration: the attacker learns from the mail system’s validation behavior, rather than from access to the contents of a mailbox.
Why disabling VRFY and EXPN is not enough
SMTP includes VRFY and EXPN commands that can expose information about users or mailing lists. RFC 5321 warns that these commands can present security concerns and allows sites to disable them or limit their use to authenticated requestors. But blocking them alone does not stop a DHA: the standard notes that RCPT TO can reveal similar address-validity information, depending on when recipient checks occur. See RFC 5321, Section 7.3.
#1 Best Overall
How mail administrators can reduce harvesting
Defenses differ in when the system checks recipients, what the remote sender can learn, and what happens to legitimate mail. Australian Signals Directorate and Australian Cyber Security Centre guidance includes preventing directory harvesting among mail-relay security actions and recommends that inbound relays be able to validate recipient addresses before accepting delivery (Email security guidance).
Validate recipients during the SMTP conversation
A gateway can check whether recipients are valid while SMTP commands are exchanged, then apply a policy for repeated invalid-recipient attempts. Cisco documents a configurable threshold that can cause a connection to be dropped. Under that threshold behavior, its guide says the envelope sender does not receive a bounce for an invalid recipient once the threshold applies. Administrators should verify how their own gateway implements rejection and connection handling.
Rank #2
- Pass the Securing Email with Email Security Appliance 300-720 SESA with updated flashcards packed with detailed content aligned to the latest exam blueprint. Cover all core topics without the overload found in lengthy study guides. Get 300+ Securing Email with Email Security Appliance 300-720 SESA flashcards on 8-1/2″ x 11″ perforated card stock.
Check recipients later in a work queue
Another option is to accept the message during the SMTP exchange and validate recipients afterward. Because the sender receives acceptance before the check, it cannot learn recipient validity from the SMTP conversation in the same way. Cisco notes a trade-off: a later check of an invalid recipient may still produce a bounce to the envelope sender.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
Restrict enumeration commands and set attempt limits
Disable or restrict VRFY and EXPN where appropriate, but treat that as one layer rather than a complete defense. Also configure how the gateway handles a sender that tries many invalid recipients: the policy might reject, defer, or disconnect once a chosen limit is reached. Thresholds should reflect the organization’s mail flow and gateway behavior, not a number copied uncritically from another product.
Rank #3
- Pass the Securing Email with Email Security Appliance with updated flashcards packed with detailed content aligned to the latest exam blueprint. Cover all core topics without the overload found in lengthy study guides. Get 300+ Securing Email with Email Security Appliance flashcards on 8-1/2″ x 11″ perforated card stock.
For context, Cisco’s AsyncOS 13.5.1 guide lists a default limit of 25 invalid recipients per hour for a public listener and an unlimited default for a private listener. These are version- and product-specific defaults, not universal recommendations. Review the relevant setting and documentation for the gateway and version actually in use.
Quick Recap
Best Value
- XGS 88W with 1 Year Xstream Protection - Next-generation firewall appliance with Xstream Protection subscription providing zero-day defense, cloud sandboxing, email filtering, intrusion prevention, and advanced reporting, managed through Sophos Central for unified policies and reporting.
- Built in Wi Fi 6 with 4 x 2.5 GE copper ports, delivering up to 9.9 Gbps firewall performance for secure wired and wireless networks.
- Zero day protection with cloud sandboxing, email filtering, and advanced reporting for full enterprise coverage.
- TLS inspection and next generation intrusion prevention block hidden threats in encrypted traffic and stop sophisticated attacks.
- Includes Xstream Protection – Advanced security bundle with zero-day protection, cloud sandboxing, email filtering, and automated threat response, providing full coverage against the most sophisticated cyberattacks.
Rank #4
- XGS 108 with 1 Year Xstream Protection - Next-generation firewall appliance with Xstream Protection subscription providing zero-day defense, cloud sandboxing, email filtering, intrusion prevention, and advanced reporting, managed through Sophos Central for unified policies and reporting.
- 6 x 2.5 GE copper ports and 1 SFP fiber port, supporting up to 12.5 Gbps firewall performance for growing business networks.
- Zero day protection with cloud sandboxing, email filtering, and advanced reporting for full enterprise coverage.
- TLS inspection and next generation intrusion prevention block hidden threats in encrypted traffic and stop sophisticated attacks.
- Includes Xstream Protection – Advanced security bundle with zero-day protection, cloud sandboxing, email filtering, and automated threat response, providing full coverage against the most sophisticated cyberattacks.
What to remember
- A DHA tests guessed recipients to identify addresses that a domain’s mail system appears to accept.
- Its success depends on information revealed by recipient handling; disabling
VRFYandEXPNalone may leaveRCPT TOas a source of validity clues. - Recipient validation, sensible invalid-recipient limits, and deliberate SMTP response behavior can reduce the information exposed, with different trade-offs for bounces and legitimate mail.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




