Spam emails being sent out through my Excahnge 2010 server

Posted on 2016-10-18
Last Modified: 2016-10-24
I have an Exchange 2010 server and it is now sending out emails by the hundreds from one internal email address that we actually use for our backups.  It is  I need help getting this to stop or correcting this.  I am just not sure where to go.  This is actually an email address that we used to use and have but no longer do.

Question by:Lanee Kirby
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
  • 2
  • +2
LVL 95

Expert Comment

by:John Hurst
ID: 41848797
One of your machines has been hacked and is the culprit.

Can you look at the Exchange Logs and see who (what machine) is sending out the emails via Exchange.
LVL 40

Expert Comment

by:Adam Brown
ID: 41848825
Also make sure your port 25 receive connector isn't configured as an open relay. If you've configured an Open Relay connector for internal devices, make sure it isn't set up to allow access from the Internet.
LVL 63

Accepted Solution

Simon Butler (Sembee) earned 500 total points
ID: 41848869
I would disagree that it would be a hacked machine - unless the reference is to the Exchange server itself. A hacked machine simply doesn't send email via the Exchange server - that is too much hassle.

My bet is that the account has been compromised - backup@ is on the list of most frequently abused names (I maintain a list based on information from one of my client systems that logs the attacks). As Exchange will allow authenticated relaying if you have enabled it on the receive connector, that is the most likely case.

Therefore the first thing you need to do is change the password on that account. Even if that means reconfiguring backups everywhere else, until you change the password there is nothing you can do to stop the flow.
Once the account has been changed, restart MS Exchange transport. That will break the connection.

As the emails are all from the same user, removing them is easy.
Start with this blog posting:

You will probably have to adjust the parameters to catch the messages if the from field is the same. It will probably take two or three runs to get all of the messages cleared.

If you don't need authenticated relaying enabled on port 25, then disable it - which is the default configuration.
Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.


Expert Comment

by:Naushad shaikh
ID: 41848870
First change the password of that account and if you are not using that account disable it.

then start on working spam prevention and loopholes in your environment .

Author Comment

by:Lanee Kirby
ID: 41848903
I have checked the logs and it appears as if we are being a relay for another external server.  I did find several connectors that did have externally secure checked and I have now corrected that and I have made sure to uncheck aounomous from the permissions that several connectors had checked.  I have rebooted my server but the email queue is still growing by about 2-3 messages a minute. I am not sure what else to try.  Any other suggestions?
LVL 95

Expert Comment

by:John Hurst
ID: 41848919
Are the new emails (queue growing) also from an external source?

Author Comment

by:Lanee Kirby
ID: 41848923
Thanks  That did it.  Changed the password and made the necessary corrections to the connectors. Thanks all!
LVL 63

Expert Comment

by:Simon Butler (Sembee)
ID: 41848925
The queues growing is to be expected, but that doesn't mean the problem is still there.
The Exchange queue viewer is not capable of displaying everything that is in the queue when there are a large number of messages in the queue.

Therefore as emails are delivered, more are shown. I have seen queues "grow" on a system that is completely disconnected from the internet because of that fact, so don't worry on that score.

Have you changed the password for that account? If not, then you need to - anything else is a waste of time until you do.

Author Comment

by:Lanee Kirby
ID: 41848957
I did change the password for that account and no more messages in the queue.  However, now I cannot receive any external email.  Ugh!
LVL 95

Expert Comment

by:John Hurst
ID: 41848962
Check the main Exchange setup for that

Author Closing Comment

by:Lanee Kirby
ID: 41857363
Finding the account that was compromised and changing the password fixed my issue.  Thanks so much!!

Featured Post

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Find out what you should include to make the best professional email signature for your organization.
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
In this video we show how to create an Accepted Domain in Exchange 2013. We show this process by using the Exchange Admin Center. Log into Exchange Admin Center.: First we need to log into the Exchange Admin Center. Navigate to the Mail Flow >> Ac…
how to add IIS SMTP to handle application/Scanner relays into office 365.

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question