Exchange 2003 SMTP Server Hacked with Auto sending of junk mails.

Posted on 2006-06-19
Last Modified: 2013-12-04
Help! I am currently facing a huge problems with my Exchange SP-2 2003. Windows 2003 SBS and P-4-3ghz, 1GB RAM, 400GB harddrive.

The Exchange SMTP queue keeps trying to send out junk mails. The Virtual SMTP Server keeps growing in its number of mails like every 100 per second. it used to be 1000 per second until i did the following.

1) Disabled Outgoing SMTP server on router. Isolate external intrusion or spam relay
2) Shutdown all systems in the office.
 3) Stop outbound emails: to enable further troubleshooting, otherwise the system will hang as the SMTP will take up too much memory and crash the server
4) Stop Network Interface. The only network interface. To see if its internal or external factors causing the problem.
5) Stop Exchange Services
6) Deleted SMTP virtual server (reduced 1000 per seconds to 100 per seconds)
7) run Ewido scan to remove any known malwares (none found)
8) Updated Trend Micro officescan AV to latest virus def (it was already updated)
9) Netstat doesn’t show any strange behaviours (no known external ports)
10) Went into IIS to stop all running services (freed up more memory)

Running services that takes up most CPU Processes are:
1) Ewido (malware scanner)
2) PBE server (APC UPS Server)
3) DAVCDATA (IIS component)
4) LSASS, Explorer, Taskmgr, SVCHost, InetInfo

Please help?
Question by:cybera
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
  • 6
  • 4
LVL 32

Accepted Solution

r-k earned 250 total points
ID: 16939873
I would suggest trying to narrow it down systematically.

The first thing to determine is where the problem is originating from - from the Exchange Server, or from one or more of the Workstations.

Can you explain if you have determined the above? From your description it seems like the problem is not the server but the workstations. Is that true? or are you not sure?

Start by reading this web page, esp. the section on cleaning up the queues and checking for where the email is originating:

Author Comment

ID: 16939891
I manage to locate the answer actually from the same website you found.

I think this solves the problem. will try and monitor.
LVL 32

Expert Comment

ID: 16939979
That's great. Did you discover the source of the problem. Was it the server being hacked or an open realy, or was it one of the workstations?
When ransomware hits your clients, what do you do?

MSPs: Endpoint security isn’t enough to prevent ransomware.
As the impact and severity of crypto ransomware attacks has grown, Webroot fought back, not just by building a next-gen endpoint solution capable of preventing ransomware attacks but also by being a thought leader.


Author Comment

ID: 16940109
Its not workstation as I have sealed the ports to the server.
However, am still figuring out how did the attack came about.
You have any ideas?

I actually use a web based server, use exchange as internal mail resolution and collaboration tool, so i have a pop downloader working and send mails through smarthost through my ISP.

mails are still in queue now. am going to delete them now.
LVL 32

Expert Comment

ID: 16940148
Before deleting all the mails, you may want to check the section in that above web page titled "Find the Problem".

It covers the most common reasons for this problem, e.g. open relay, NDR attack etc.

Author Comment

ID: 16949701
I think the problem is related to both OPen relay and NDR. now it has stabilized and has got about 80,000 mails to delete. Hopefully all will be well by end of today. If this is solved, I shall close this case and pass you the points.
LVL 32

Expert Comment

ID: 16952670
Excellent. Thanks for the update.

Author Comment

ID: 16978797
Sorry. I tried both checks. I disabled the smtp services, and the mails all get deleted. But after I turned it on again, the same problem repeated itself.

I have followed instructions for Tarpit protection,
I have checked and made sure that no open relay is enabled as instructed by Microsoft,
and I made sure that NDR attack is taken care of as well.

Still, when i turned on the SMTP server, the whole problem re-surfaced! Strange... Any help?

Author Comment

ID: 16989256
I found the problem. Realized that its due to the queue folder that is jammed up. thats why the mails keep coming in. I found some good references which points to this problem.

Clearing the NDR emails that are stuck in the queue:

In Exchange Server 2003 or in Exchange 2000 Server, the Exchange Server queues are filled with many non-delivery reports from the postmaster account because of a reverse non-delivery report attack
Location of the stuck mails in the folder C:\Program Files\Exchsrvr\Mailroot\vsi 1\queue

Just delete off all mails stuck in the folder. The no. of files here can amount up to 20k. For us, the first time encounter with this problem, the number of emails amounted up to 26-thousanrd.


Author Comment

ID: 16989262
points will be rewarded to R-K because he is prompt in his response. and highlighted impt security factors that need to be considered.

Though he didnt actually solve the problem, i just want to thank and appreciate him for the effort he puts in.

Thanks for your help!

Featured Post

Ready to trade in that old firewall?

Whether you need to trade-up to a shiny new Firebox or just ready to upgrade from whatever appliance you're using now, WatchGuard has the right appliance for you! Find your perfect Firebox today with appliance sizing tool!

Question has a verified solution.

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

In a recent article here at Experts Exchange (, I discussed my nine-month sandbox testing of the Windows 10 Technical Preview, specifically with respect to r…
Users of Windows 10 Professional can disable automatic reboots using the policy editor. This tool is not included in the Windows home edition. But don't worry! Follow the instructions below to install (a Win7) policy editor on your Windows 10 Home e…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

617 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