October DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsSlow PC?RecommendedPC slow today? Run a repair scan before it gets worseResolve common Windows issues and optimize system performance.Scan NowOctober DealsAmazon USDeal season is back - check today's better picksAmazon US: current deals, useful picks and tech finds.See Picks×
Skip to content
World desk3 min

What Is a Directory Harvest Attack (DHA)?

A directory harvest attack probes guessed email recipients and uses mail-server responses to identify valid addresses. Learn how the SMTP exposure works and how administrators can limit it.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

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.

  1. Guess recipients. An attacker tries likely addresses, which may include common names at the target domain.
  2. Observe mail-server responses. The attacker looks for differences that suggest the receiving system accepts one recipient but not another.
  3. 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.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

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.

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
Securing Email with Email Security Appliance 300-720 SESA Study Guide Flashcards
  • 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.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

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
Securing Email with Email Security Appliance Study Guide Flashcards
  • 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.

Best Value
Sophos XGS 88W (Gen2) Wireless Security Appliance with 1 Year Xstream Protection (XY88ZZ12ZZPCUS) | 4 x 2.5 GE Ports | Built-in Wi-Fi 6, SD-WAN, Secure VPN, Central Cloud Management
  • 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
Sophos XGS 108 (Gen2) Network Security Appliance with 1 Year Xstream Protection (XX108Z12ZZPCUS) | 6 x 2.5 GE Ports + 1 SFP | Next-Gen Protection, SD-WAN, Secure VPN, Centralized Management
  • 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.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

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 VRFY and EXPN alone may leave RCPT TO as 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.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.