This script pulls all email addresses with a set domain name from all applicable mailboxes in an Exchange Server environment. Fairly simple. Pulled from my blog. Works on Exchange 2007+ and O365. Hybrid mailbox capabilities are not fully tested. Let me know if it doesn't work.