I Need To Make A Change With My IT Support! Call (225) 706-8414

List All SMTP Email Addresses for Exchange

You need to list all valid SMTP email addresses in an Active Directory/Exchange environment.


You can do this in one of two ways.

The GUI Method

The GUI method works, but won’t produce a CSV list or anything usable like that.

  1. Log into an Exchange server
  2. Open AD Users & Computers
  3. Right-click on your DOMAIN
  4. Click Find
  5. For the Find drop-down, choose Custom Search
  6. Click on Advanced
  7. In the LDAP query field, enter:
  8.  Click Find Now
ADUC will now return all AD entries that have an SMTP address associated with them. You can then double-click each entry and click on the E-Mail Addresses tab to see the email addresses for that entry.
The CLI Method
This is better known as the “yeah, that’s what I wanted!” method.
  1. Log into a DC
  2. Open a DOS box
  3. Run this command:
    ldifde -l proxyAddresses,objectClass -f emaillist.txt -r “(proxyAddresses=smtp:*)”
Now you have a dump from AD of all email addresses in emaillist.txt from which to work. By including the “objectClass” the output will include whether the AD object is a real mailbox (“objectClass: user”), public folder (“objectClass: publicFolder”), or distribution group (“objectClass: group”).

Concerned About Cyber Attacks?


Want to Migrate to the Cloud?

Office 365

Ready to Experience Microsoft Office 365?

Want the latest IT news directly in your inbox? Subscribe now!