Monday, October 12, 2015

Removing Large Amounts of Spam from Exchange Server Queue Database

A customer running Exchange 2010 experienced a large number of spam emails in the submission queue (over 80,000).


All the Spam Emails started with "ID#ALERT#", as a result we ran the following command to clean up any emails with "ID#ALERT#" in the subject.

Get-Message -ResultSize unlimited | Where-Object {$_.Subject -match "ID#ALERT#"} | Remove-Message


Due to the significant amount of spam, the command failed to remove the messages and just hung for hours.  However we could remove messages individually.

We could however list the emails with the following command:

Get-Message -ResultSize unlimited | Where-Object {$_.Subject -match "ID#ALERT#"}

This gave us an idea to write a foreach command to remove each email individually from a CSV file.  First we needed a detailed list with the identity of each spam email so we ran the following command:

Get-Message -ResultSize unlimited | Where-Object {$_.Subject -match "ID#ALERT#"} | select Identity > C:\output.txt

We then formatted the CSV file to ensure we specified a name for the Identity column.  As you see we added "Identity" to the top of the file.


We then ran the Remove-Message command multiple times for each Identity in the CSV file using the following command:

Import-Csv "C:\output.txt" | ForEach-Object {Remove-Message -Identity $_.Identity -confirm:$false}

This ran the Remove-Message command over 80,000 times for each message in the queue and was able to clean it up successfully.

10 comments:

  1. I am Hwa Jurong, a Private Money Lender do you need a loan to start up business or to pay your bills and a corporate financial for real estate and any kinds of business financing. I also offer Loans to individuals,Firms and corporate bodies at 2% interest rate. I give out loan to serious minded people that are interested of loan if interested contact this email: hwajurong382@yahoo.com or hwajurong12@gmail.com

    ReplyDelete
    Replies

    1. windows 8 professional key buy online , windows 10 serial keys product key torrent , use windows 8 product key for windows 10 , office 2013 activation keys , microsoft visio professional 2016 , windows 7 ultimate sp1 activation key , windows key purchase , windows 10 serial keys for installation , sNJcrO

      windows 10 pro key

      office 2013 pro key sale

      cheap visual studio key buy

      Delete
    2. WESTERN UNION MONEY TRANSFERS

      Prices in USD (for people in US, Canada):
      $1000 for $100
      $2000 for $200
      $3000 for $300
      $4000 for $400
      $5000 for $500
      $6000 for $600
      Prices in Euro (for people in Europe):
      1000€ for 100€
      2000€ for 200€
      3000€ for 300€
      4000€ for 400€
      5000€ for 500€
      6000€ for 600€
      Prices in GBP (for people in UK):
      1000£ for 100£
      2000£ for 200£
      3000£ for 300£
      4000£ for 400£
      5000£ for 500£
      6000£ for 600£

      and many more service available like credit card , Paypal , bank log ins etc
      contact on westernunionhacker@yahoo.com

      Delete
    3. - I hope u good customers and will be long-term cooperation

      ---- List cc and my price---------

      - Us (Visa,Master) = 4$ per 1

      - Us (Amex,Dis) = 6$ per 1

      - Us Bin 10$ , US Dob 15$

      - Us fullz info = 25$ per 1
      --------------------------------
      - Uk (Visa,Master) = 10$ per 1

      - Uk (Amex,Dis) = 12$ per 1

      - Uk Bin 15$ , UK Dob 20$

      - Uk fullz info = 30$ per 1
      --------------------------------
      - Ca (Visa,Master) = 10$ per 1

      - Ca (Amex,Dis) = 12$ per 1

      - Ca Bin 15$ , CA Dob 20$

      - Ca fullz info = 30$ per 1
      --------------------------------
      - Au (Visa,Master) = 12$ per 1

      - Au (Amex,Dis) = 15$ per 1

      - Au Bin 17$ , AU Dob 20$

      - Au fullz info = 30$ per 1
      --------------------------------
      - Eu (Visa,Master) = 20$ per 1

      - Eu (Amex,Dis) = 23$ per 1

      - Eu Bin 25$ , AU Dob 30$

      - Eu fullz info = 40$ per 1
      --------------------------------
      - RDP = 20$

      - SMTP = 25$ ( All Country )

      - Italy = 20$ per 1 (fullz info = 35$)

      - Spain = 20$ per 1 (fullz info = 35$)

      - Denmark = 25$ per1 (fullz info = 35$)

      - Sweden = 20$ per 1 (fullz info = 35$)

      - France = 20$ per 1 (fullz info = 35$)

      - Germany = 20$ per 1 (fullz info = 35$)

      - Ireland = 20$ per 1 (fullz info = 35$)

      - Mexico = 15$ per 1 (fullz info = 30$)

      - Asia = 15$ per 1 (fullz info = 30$)


      Prices WesternUnion Online Transfer


      -Transfer(Eu,Uk,Asia,Canada,Us,France,Germany,Italy and very

      easy to do African)

      - 200$ = 1500$ (MTCN and sender name + country sender)

      - 250$ = 4000$ (MTCN and sender name + country sender)

      - 400$ = 6000$ (MTCN and sender name + country sender)

      - 500$ = 8000$ (MTCN and sender name + country sender)

      Then i will do transfer's for you, After about 30 mins you'll have

      MTCN and sender name + country sender

      - With Dumps

      - Tracks 1&2 US = 85$ per 1

      - Tracks 1&2 UK = 100$ per 1

      - Tracks 1&2 CA / AU = 110$ per 1

      - Tracks 1&2 EU = 120$ per 1


      Bank Logins Prices US UK CA AU EU


      - Bank Us : ( HALIFAX,BOA,CHASE,Wells Fargo...)

      . Balance 5000$ = 250$

      . Balance 8000$ = 400$

      . Balance 12000$ = 600$

      . Balance 15000$ = 800$

      . Balance 20000$ = 1000$

      - Bank UK : ( LLOYDS TSB,BARCLAYS,Standard Chartered,HSBC...)

      . Balance 5000 GBP = 300$

      . Balance 12000 GBP = 600$

      . Balance 16000 GBP = 700$

      . Balance 20000 GBP = 1000$

      . Balance 30000 GBP = 1200$

      CONTACT ME ON MY FOLLOWING ID

      contact me : gmail: shabz641@gmail.com
      yahoo : westernunionhacker@yahoo.com
      skype: leads_provider

      Delete
  2. Thanks for sharing this tool information it is useful to us.
    Outlook Mail

    ReplyDelete
  3. Hello all
    Hacker Services Available
    am looking few years that some guys comes into the market they called themselves hacker, carder or spammer they rip the peoples with different ways and it’s a badly impact to real hacker now situation is that peoples doesn’t believe that real hackers and carder scammer exists. Anyone want to make deal with me any type am available but first I‘ll show the proof that am real then make a deal like
    Wire Bank Transfer
    Western Union,
    Money Gram
    SSN
    Air Ticket
    Hotel Booking
    Hacking stuff
    Shipping product. serious / needy contact about it.


    lykovine@yahoo.com

    ReplyDelete
  4. Hello, Lakewood Financial Institutions is at it again, we give loan to both local and international client in need of a loan. And we give @ 2% rate to all client, so you can contact us via E-mail, lakewook_financialinstitutions@consultant.com

    ReplyDelete
  5. WESTERN UNION MONEY TRANSFERS

    Prices in USD (for people in US, Canada):
    $1000 for $100
    $2000 for $200
    $3000 for $300
    $4000 for $400
    $5000 for $500
    $6000 for $600
    Prices in Euro (for people in Europe):
    1000€ for 100€
    2000€ for 200€
    3000€ for 300€
    4000€ for 400€
    5000€ for 500€
    6000€ for 600€
    Prices in GBP (for people in UK):
    1000£ for 100£
    2000£ for 200£
    3000£ for 300£
    4000£ for 400£
    5000£ for 500£
    6000£ for 600£

    and many more service available like credit card , Paypal , bank log ins etc
    contact on westernunionhacker@yahoo.com

    ReplyDelete
  6. - I hope u good customers and will be long-term cooperation

    ---- List cc and my price---------

    - Us (Visa,Master) = 4$ per 1

    - Us (Amex,Dis) = 6$ per 1

    - Us Bin 10$ , US Dob 15$

    - Us fullz info = 25$ per 1
    --------------------------------
    - Uk (Visa,Master) = 10$ per 1

    - Uk (Amex,Dis) = 12$ per 1

    - Uk Bin 15$ , UK Dob 20$

    - Uk fullz info = 30$ per 1
    --------------------------------
    - Ca (Visa,Master) = 10$ per 1

    - Ca (Amex,Dis) = 12$ per 1

    - Ca Bin 15$ , CA Dob 20$

    - Ca fullz info = 30$ per 1
    --------------------------------
    - Au (Visa,Master) = 12$ per 1

    - Au (Amex,Dis) = 15$ per 1

    - Au Bin 17$ , AU Dob 20$

    - Au fullz info = 30$ per 1
    --------------------------------
    - Eu (Visa,Master) = 20$ per 1

    - Eu (Amex,Dis) = 23$ per 1

    - Eu Bin 25$ , AU Dob 30$

    - Eu fullz info = 40$ per 1
    --------------------------------
    - RDP = 20$

    - SMTP = 25$ ( All Country )

    - Italy = 20$ per 1 (fullz info = 35$)

    - Spain = 20$ per 1 (fullz info = 35$)

    - Denmark = 25$ per1 (fullz info = 35$)

    - Sweden = 20$ per 1 (fullz info = 35$)

    - France = 20$ per 1 (fullz info = 35$)

    - Germany = 20$ per 1 (fullz info = 35$)

    - Ireland = 20$ per 1 (fullz info = 35$)

    - Mexico = 15$ per 1 (fullz info = 30$)

    - Asia = 15$ per 1 (fullz info = 30$)


    Prices WesternUnion Online Transfer


    -Transfer(Eu,Uk,Asia,Canada,Us,France,Germany,Italy and very

    easy to do African)

    - 200$ = 1500$ (MTCN and sender name + country sender)

    - 250$ = 4000$ (MTCN and sender name + country sender)

    - 400$ = 6000$ (MTCN and sender name + country sender)

    - 500$ = 8000$ (MTCN and sender name + country sender)

    Then i will do transfer's for you, After about 30 mins you'll have

    MTCN and sender name + country sender

    - With Dumps

    - Tracks 1&2 US = 85$ per 1

    - Tracks 1&2 UK = 100$ per 1

    - Tracks 1&2 CA / AU = 110$ per 1

    - Tracks 1&2 EU = 120$ per 1


    Bank Logins Prices US UK CA AU EU


    - Bank Us : ( HALIFAX,BOA,CHASE,Wells Fargo...)

    . Balance 5000$ = 250$

    . Balance 8000$ = 400$

    . Balance 12000$ = 600$

    . Balance 15000$ = 800$

    . Balance 20000$ = 1000$

    - Bank UK : ( LLOYDS TSB,BARCLAYS,Standard Chartered,HSBC...)

    . Balance 5000 GBP = 300$

    . Balance 12000 GBP = 600$

    . Balance 16000 GBP = 700$

    . Balance 20000 GBP = 1000$

    . Balance 30000 GBP = 1200$

    CONTACT ME ON MY FOLLOWING ID

    contact me : gmail: shabz641@gmail.com
    yahoo : westernunionhacker@yahoo.com
    skype: leads_provider

    ReplyDelete