I'm trying to gather a list of all e-mail addresses being used by our Exchange 2003 system, which includes not only the normal user addresses, but distribution groups and aliases as well. I also need the output formatted like: firstname.lastname@example.org - although, we only have one domain, so even if I can get the user part, that would work.
I don't care about account-association here, I really just need a list of addresses.
How can I go about doing an export of all smtp e-mail addresses from Exchange 2003, including distribution group and alias addresses in the email@example.com format?
I would prefer something that can be accomplished via the command line so that it can be generated by a script, but it would be just as useful if there is a way to do this manually (read: point and click) as well.
Any ideas? I don't see anything within System Manager that can do this, and my searching isn't turning up anything that can fulfill all the above requirements.
This is how I'm using the accepted answer:
@echo off ldifde -f c:\temp\ldifde-dump.txt -l proxyaddresses find "@" < c:\temp\ldifde-dump.txt > c:\temp\email-addresses.txt del c:\temp\ldifde-dump.txt
This produces c:\temp\email-addresses.txt, which, although it contains a little extra garbage characters, it can easily be parsed out with a search & replace in Notepad++.