Badmail folder keeps growing

Microsoft Windows server 2003
April 21, 2010 at 05:38:09
Specs: Windows server 2003
Dear all,
I really need help,
I'm running windows server 2003 with IIS V6 and not using exchange.
A couple days ago my disk suddenly full, i figured out 2 folders with huge amount of files in it c:\inetpub\mailroot\queue and c:\inetpub\mailroot\badmail
I did erase all files in c:\inetpub\mailroot\queue (it's taking me 2 days) and also removed the directory but i have problems with deleting the c:\inetpub\mailroot\badmail, i'm still deleting the files in it (it is 4th day now) but it keeps growing.
I already uninstall SMTP in IIS since I don't use it anyway.
I'm confuse what makes the folder keeps growing. What should I do to solve this problem and how to prevent the same problem in the future. Please anyone help me. I really need to solve the problem immediately.
thank you.

See More: Badmail folder keeps growing

Report •

April 21, 2010 at 06:29:12
Here's a VBS script from experts-exchange to delete
I guess you could do the same for the other directory. I have no idea if it works or not.

Dim oFSO
Dim oFolder
Dim oFile
Dim iDaysOld

'Customize values here to fit your needs
Set oFSO=CreateObject("Scripting.FileSystemObject")
set oFolder=oFSO.GetFolder("C:\inetpub\mailroot\badmail")

'Walk through each file in this folder collection.
'If it is older than iDaysOld days, then delete it.

For each oFile in oFolder.Files
If oFile.DateLastModified < (Date() - iDaysOld) Then
oFSO.DeleteFile oFolder.Path & "\" & oFile.Name
End If

'Clean up
Set oFSO = Nothing
Set oFolder = Nothing
Set oFileCollection = Nothing
Set oFile = Nothing

How do you know when a politician is lying? His mouth is moving.

Report •

April 21, 2010 at 22:08:34
dear sir Quapo,
thank you for your reply but my problem is not with deleting the files but i need to know what programs filling it and how to restrict it to not to fill the folder anymore in the future.
hopefully you are willing to help me further.
thank you.

Report •

April 22, 2010 at 01:22:59
Search google for:

There are many people with the same problem.

How do you know when a politician is lying? His mouth is moving.

Report •

Related Solutions

Ask Question