Exporting incoming email address by date range for all mailboxes

I run a Small Business 2011 Standard server using Exchange 2010 for a small municipality.  A public records request was made for all email address that emailed any employee of that city between 1-1-2013 and 3-6-2014 .  There are about 160,000 emails
for that date range but how can I just export a log of the senders email address with a time stamp?  Thank you in advanced for any help you can give.
I should add that All logging is at defaults values 
I found a "work around",  I have a Barracuda Message Archiver, I did a search of the date range and exported it to CSV, then imported it in to Excel and just deleted the extra data.
Thanks for the fast replies 

Good point, Belinda. If you have that time period within your log retention, then you should be able to do something with the Exchange Shell. This is a bit rough but could serve your purpose:
#--- This finds the email addresses of the users whose city is set to Sydney.
$Sydmbx = Get-ADUser -Filter {City -eq "Sydney"} -Properties homemdb, proxyaddresses | ?{$_.homemdb -ne $null}
$Sydmbx | %{$Sydaddresses += $_.Proxyaddresses}
$Sydaddresses = $Sydaddresses.TrimStart("SMTP:")
$Sydaddresses = $Sydaddresses.TrimStart("smtp:")
#--- Enter your HT servers here
$ExchServ = @("exch01", "exch02")
#--- This creates an object which lists senders who have sent to our recipient addresses, the timestamp and messageid.
$Report =@()
foreach ($server in $ExchServ){
foreach ($addy in $Sydaddresses){
$sentmail = Get-MessageTrackingLog -Server $server -Recipients $addy -Start "01/01/2013 12:00:00 AM" -End "06/03/2014 2:00:00 PM" -EventID Deliver -ResultSize Unlimited
$sentmail | foreach{
$Trackobj = New-Object PSObject
$Trackobj | Add-Member -MemberType NoteProperty -Name "Recipient" -Value $addy
$Trackobj | Add-Member -MemberType NoteProperty -Name "Timestamp" -Value $_.Timestamp
$Trackobj | Add-Member -MemberType NoteProperty -Name "Sender" -Value $_.Sender
$Trackobj | Add-Member -MemberType NoteProperty -Name "MessageID" -Value $_.MessageID
$Report += $Trackobj
$Report
You can change the location to suit yourself as long as you populate "City" in AD and the server names with your own servers.

Similar Messages

  • Someone keeps trying or has been using my email address to sign up for all kinds of accounts.  What can I do?

    I have had this email address since apple offered family accounts for me.com.  For the past 4 years, someone has been using my email to sign up for accounts.  They have repeatedly tried to reset my password.  I keep getting emails from companies.  I have been very nice and responded back to personal emails telling them that they must have typed in the wrong address.  I have emailed different companies asking them to delete any and all accounts using my email address for me.com or icloud.com.  This person has even been using my email to use to turn in her homework on turnitin.com.  I have asked them to please alert the school to let the person know that this is not their address and please not to use it.  I have recently discovered that they are trying daily to reset my password.  Is there anything I can do besides changing my email?

    OMG, there is someone else who is experiencing this? I swear, I have used up all patience and trying to be kind when dealing with this.
    I created my primary email account [email protected] a very long time ago. Of course, it morphed into [email protected] and most recently into [email protected]. This behavior occurs with all three variations, but most often with the "@me.com" address. In trying to understand the timeline, I figured it started occurring about the time of the iOS release 5.
    I get approximately 10 account creation emails a week. Mine range from harmless to education to medical to ****. At one time I was getting as many as a hundred a week! I also send very politely worded emails to the companies explaining that someone tried to sign up with one of the variations of my emails and ask them to delete any or all accounts associated with them. Unless of course, they are ones that I want to keep.
    The problem with telling companies to delete the accounts is that it is now sitting out there for someone to setup the account AGAIN. I have started simply requesting a new password or password reset, change the public facing data and leave it be. This will only work with accounts that require email validation, though. I have stumbled upon accounts while trying to create my own! Again, I simply change the public facing info and password and email. It then becomes mine. I've had a couple of accounts - a Disney site - that won't reset the password or delete the accounts because I can only validate the email address and none of the other account info! Sigh.
    I have worked with Apple many times, sometimes for many hours trying to resolve this issue. Apple tends to be myopic and generally sticks with "someone just mistyped the email"... but it happens much too frequently for this to be true. I know it is a popular and coveted email address and perhaps people think they can force the company to recognize it as their own. I've also had requests for the Apple accounts to be reset.
    Recently had an interesting chat on Apple's Messages with an 8 year old who swears that it is her friend's iChat account. She admonished me to be nicer if I was sharing it with her friend. I couldn't make her understand that her friend was incorrect in believing it was hers.
    I see that you've written your message way back in February and I see no other follow ups. Have you been successful in making this stop?

  • How to find out which list is associated with specific incoming email address

    Hey Guys,
    I've a received a request today from a user asking me which list was setup with a specific incoming email address.
    Is there a way to find out which list is associated with an email address?
    Thanks

    OK after a bit of research I found a way to achieve this.
    I simply looked up the email address in ADUC, then did a search in SP with the display name. I could locate the list and manually confirm it was configured with the incoming email address I was looking for.
    I also found the below script on Stackoverflow, but got "The 'using' keyword is not supported in this version of the language." when I tried to run it. Any idea how to fix that? I'd like to have a script to link a library to an email address istead of the
    manual approach described above.
    http://stackoverflow.com/questions/4974110/sharepoint-how-do-i-find-a-mail-enabled-list-if-i-only-have-the-email
    $SiteCollection = ""
    $EmailAddress = "" # only the part before the @
    # Load SharePoint module if not done yet
    if((Get-PSSnapin | Where {$_.Name -eq "Microsoft.SharePoint.PowerShell"}) -eq $null) {Add-PSSnapin Microsoft.SharePoint.PowerShell;}
    cls
    using System;
    using Microsoft.SharePoint;
    namespace FindListByEmail
    class Program
    {a
    static void Main(string[] args)
    string siteUrl = $SiteCollection;
    string email = $EmailAddress;
    using (SPSite site = new SPSite(siteUrl))
    foreach (SPWeb web in site.AllWebs)
    try
    foreach (SPList list in web.Lists)
    if (list.CanReceiveEmail)
    if (list.EmailAlias != null && list.EmailAlias.Equals(email, StringComparison.InvariantCultureIgnoreCase))
    Console.WriteLine("The email belongs to list {0} in web {1}", list.Title, web.Url);
    Console.ReadLine();
    return;
    finally
    if (web != null)
    web.Dispose();

  • Whenever I update my iPhone software, it asks me to sign in to iCloud with an old email address.  My other devices all have the correct address.  How can I get the correct address for my iPhone?  The only Apple ID that works for logging in is my new one.

    Whenever I update my iPhone software, it asks me to sign in to iCloud with an old email address.  My other devices all have the correct address.  How can I get the correct address for my iPhone?  The only Apple ID that works for logging in is my new one.

    To change the iCloud ID you have to go to Settings>iCloud, tap Delete Account, provide the password for the old ID when prompted to turn off Find My iPhone (if you're using iOS 7), then sign back in with the ID you wish to use.  If you don't know the password for your old ID, or if it isn't accepted, go to https//appleid.apple.com, click Manage my Apple ID and sign in with your current iCloud ID.  Tap edit next to the primary email account, tap Edit, change it back to your old email address and save the change.  Then edit the name of the account to change it back to your old email address.  You can now use your current password to turn off Find My iPhone on your device, even though it prompts you for the password for your old account ID. Then go to Settings>iCloud, tap Delete Account and choose Delete from My iDevice when prompted (your iCloud data will still be in iCloud).  Next, go back to https//appleid.apple.com and change your primary email address and iCloud ID name back to the way it was.  Now you can go to Settings>iCloud and sign in with your current iCloud ID and password.

  • How to filter mail to delete email where incoming email address is not a valid address from my address book

    how to create a mail filter which checks the incoming email address with valid address from my address book?

    "Sender is not in my Contacts" is just an example ...
    There are many different options built in to the Rules pane.
    For example,
    If the built in options do not meet your needs, you can create a script. For another "for example" see this discussion for a way to return unwanted mail to the sender:
    http://www.jarnot.com/archives/2011/08/restore-bounce-message-functionality-to-o s-x-lion-mail-app.php

  • HT4897 Can I have multiple icloud email addresses. i.e. one for me one for my wife?

    Can I have multiple icloud email addresses. i.e. one for me one for my wife?

    You can if you create two iCloud accounts.  Each iCloud account is only given a single email account.  (You can have additional email alias addresses, but they will still deliver incoming email to the same email account and inbox.)

  • How does iphone assign a name to an incoming email address

    Haven't seen this question posted before.  I have several names in my Contact list with the same email address (i use them for eblasts to different groups). When an incoming email arrives, iPhone randomly grabs one of those names and assigns it to my email address. No one else sees this but me; however it is annoying to see some random group's name listed in the To: or cc: instead of my name. Is there a fix for this? Thanks in advance for your thoughts.

    Let me see if I can wrap my head around this...
    This is the way I see it:
    1) Sally, Sue and Joe all have the same email. [email protected]
    2) You have separate entries in your contacts for Sally, Sue and Joe all with the above same email.
    3) Sally sends you an email from her mac. She has her email set up as "Sally" with address [email protected]
    4) When your iphone receives her email, it looks in your contacts list for [email protected]
    You want to know how it finds "Sally" and not "Sue" or "Joe"?
    Right?
    It doesn't.
    I tested this. I have a gmail account that does not live on my iphone. I logged in on my mac via the internet and sent a test message. I do not have that gmail account in my contacts, nor on my mac's address book, so the iphone has no knowledge of it.
    It told me I got a message from my name, from my gmail account.
    Ergo, the name was sent along with the email address, so it appears that item number 4 is not happening.
    So, there is nothing you can do on the iphone, as it is not the iphone that is handling the name. The name comes from the sender, which you have no control over.
    Assuming I understood your problem....

  • I am trying to change or add the email address which is attached to my itunes account. I keep getting a notice saying email address is already verified for another Apple ID. Im sure its one of my devices. How can I get my current email address added?

    My itunes account is attached to an email account that I no longer have and cannot retrieve. I have been having trouble with purchases made to my itunes account and want to view my purchases. The support center said that they would email me the purchase history. However, I don't have that email address. When I go to change my email address to my current one, I get a message in red saying that "the email address is already verified for another Apple I.D." I'm sure it is one of my devices as we have 4 ipods and 2 iphones. How can I get my account to use my current email address? If one of my devices was registered using my current email address as it apparently was, do I need to figure out which device that is and remove the email address from that account? I'm so confused. I just want ALL my devices to use my current email address. I need to replace the old email address with my current one. How do I do that?
    thanks for any assistance.

    Your best bet would be to try resetting the password to the account that you would like to use via iForgot
    Once you log in to that account change the email address to anything, it can even be fake its just a placeholder
    After you do that you will be free to change your old email address on your appleID to the new one that is now free to be used as it is no longer attached to the other account.

  • I´m getting the following message: Email address is already verified for another Apple ID.

    When trying to add a new account I´m getting this error message: Email address is already verified for another Apple ID.
    I didn´t know I have another Apple ID. How can I find out which Apple ID is that one and how can I add this email address to the Apple ID I currently use? Thanks

    Are you sure you don't have another ID? If you purchased Apple hardware you may very well have been given an ID as part of the registration process. You can check this by going to http://appleid.apple.com and clicking 'Find My Apple ID'. Follow the instructions and it should list any IDs you have.
    However once an address has been associated with an Apple ID you can't use it with another (even if it's removed from the first) so you are probably going to have to use another address, such as a free one from Yahoo or GMail.

  • HT1933 I have old email address's I used for iTune music purchases and cannot change password on several old accounts. Now some of the music I purchased I can not download and authorize it on my device. What can I do password security does not match my bi

    I have old email address's I used for iTune music purchases and cannot change password on several old accounts. Now some of the music I purchased I can not download and authorize it on my device. What can I do password security does not match my birthdate on two of the accounts. Apple can not send me email with a password authorization on several current accounts that I have with them. How can I contact Apple with this annoying problem I can not fix.

    settings - app/iTunes store - sign out and sign back in with your new id.
    Note - if your older apps needs an update it will use your old apple id and password, as Apps are tied to the apple id that was used to purchase it.
    You can't merge apple id.

  • This email address is not available for use as an Apple ID

    hi
    i had two apple accounts
    and just wanted to change the primary email address for the both with each other
    when i changed the first one my old email cant be used with other account then i tried replacing my old email it doesnt replace it says
    This email address is not available for use as an Apple ID. You may already have an Apple ID associated with this address. Please try again or sign in using your existing Apple ID.
    please help me

    Yes,  I am having the same problem.  When I called apple they said that things were "tied up somehow" with another account that has a do different birthday than me.  Uuuuuhh?  So that means someone else can log in?... I have a feeling there is a big vulnerability with the three login options, just like with the current and past password retrieval. Apple had only suggested that I delete my current set up on my serviced and make a new ID and email.
    I Just got a new email and made a new Apple ID account For now. I was hoping the email would work itself out. I assumed If I could make sure everything was verified, not associated with another account, and try to get rid of the alternate id and second email option also used to sign in (seen in Apple ID management)  that could possibly be construed or mixed up with something else that it would eventually free up and become "available" again.  Unfortunately im still waiting In hopes in just needs to recognize the email isn't associated with anything.
    I have had a few major concerns with apple products lately especially with security. My iPhone 4s was hacked too. Some ******* was listening/recording and when I hooked to Internet he sent out the recorded portion that was available.  Talk about ****** up.

  • How to delete old account, I can't log in due to - This email address is not available for use as an Apple ID. You may already have an Apple ID associated with this address. Please try again or sign in using your existing Apple ID.

    How to delete old account, I can't log in due to error - This email address is not available for use as an Apple ID. You may already have an Apple ID associated with this address. Please try again or sign in using your existing Apple ID.

    All good, I loved with AppStore and now everything seems to be back to normal.

  • This email address is not available for use as an Apple ID. You may already have an Apple ID associated with this address. Please try again or sign in using your existing Apple ID.

    I want to change my apple id but get the message "This email address is not available for use as an Apple ID. You may already have an Apple ID associated with this address. Please try again or sign in using your existing Apple ID.".  I try to log a call with apple support and I get a message like "cannot schedule a call".  That leaves me out of options.  Any ideas?

    Hi billfromwandering,
    I'm sorry to hear you are having these issues changing your Apple ID. It is correct that if an email address has been used previously for an Apple ID, it can not be used for a different Apple ID, as noted in this article:
    In most cases, your Apple ID is also the primary email address of your Apple ID account. You can change your Apple ID to any other email address you control, as long as it's not already in use as an Apple ID. If your email address ends with @icloud.com, @me.com, or @mac.com, it's already an Apple ID. 
    Change your Apple ID - Apple Support
    If you are certain that the email in question has never been used for an Apple ID and you are having issues contacting Apple Support regarding this issue, you may want to make sure you are going through the Apple ID support channel on the following page:
    Apple ID - Contact - Apple Support
    Regards,
    - Brenden

  • Sharing iCal calendar on iCloud. Sending email address is the same for everyone.

    A group of us share a calendar so we all know each other's schedules. The problem is when sending or accepting meeting invitations, it always comes from the email address that is associated with the iCloud account. Can we change it for each system? Each local system should have iCal associated with their email address, not the base one.

    It won't let me change my Apple ID email address it says "Email address is already verified for another Apple ID." when I try to change my email adress. The thing is, I have no other apple id's that I know of...Any help?
    Jeremy

  • I'm trying to create a new ichat Acc because for some reason the old one is not working, so I go to Create an Apple ID and start creating a new apple ID, when I submit the Acc it tells me that my Email address is already verified for another Apple ID and

    I'm trying to create a new ichat Acc because for some reason the old one is not working, so I go to Create an Apple ID and start creating a new apple ID, when I submit the Acc it tells me that my Email address is already verified for another Apple ID and thats the only email address I have... What can I do?

    There is no way to consolidate iTunes accounts.
    Setting up an iPhone has never required creation of a new Apple ID.
    You've apparently purchased content with both Apple ID's.  Sign into the device with the correct Apple ID and sync the content.

Maybe you are looking for

  • Macbook Pro Stuck in Sleep Mode

    My macbook pro went to sleep and wouldn't wake up. This has happened a few times before and was usually cured by just holding down the power button to turn it off then turning it back on. This time that's not working though. When I try to turn it bac

  • MR-DVR / STB Issue

    I have had no issues with watching programs recorded on my MR-DVR on my Cisco STB until 2 days ago.  When I attempt to watch a show on my STB it simply freezes for a short period of time and goes back to the DVR menu.  I can see all of the shows reco

  • Trying to have pages open in same window

    Hello! Total newbie here just getting my feet wet in iWeb. Every time I publish, my pages after the home page open in new windows or tabs! How can I have each subsequent page open in the same window? Even "home" on other pages opens a new window! Obv

  • Error opening a project after i have saved it

    The following is the error I recieve after I have saved a project and try and reopen it.  It does not matter if I close Premiere Elements v7 or if i try and reopen the project right away.  I get the same error.  "Projects created with Adobe Premiere

  • Updating users profile when infoobject marked as authorization relevant

    Hi All, Consider a scenario where there are some projects in which perticuler infoobject is not authorization relevant but in some upcomming project the same infoobject needs to be authorization relevant.but when i marked this infoobject as authoriza