BadMail Clean up.

Posted on 2006-03-31
Last Modified: 2008-04-17
Hello Exports,

I would like to delete my BadMail folder with a script I found on this site, but before doing so. I would like to understand what data locate in the badmail folder? would my users will lose data?

Can I just delete the badmail folder completely and create a new one?

Thank you,

Question by:rfinaly
    LVL 15

    Accepted Solution

    No you will not loose any data at all by deleted the badmail folder contents. I recommend using the tool that microsot created in order to delete the contents of the badmail folder. Otherwise you will need to stop the services and delete and recreate the folder manually. The badmail folder contains bad emails that were either sent out or recieved. Go to and go to the downloads section and you will find it under excahgne 2k3. Its call badmaildeletetion tool. Its a vbs script that you run. If You install SP1 for exchagne, exchagne does no longer use the badmail folder for ques.
    LVL 104

    Expert Comment

    You don't even have to create a new badmail folder.

    All I do is rename the badmail folder. Windows/Exchange will recreate it as required.
    Then simply SHIFT-DELETE the folder. Don't try and open the folder in Windows Explorer as you will probably be there for ever while Windows tries to enumerate the contents.
    The reason I suggest using SHIFT-DELETE is that it bypasses the recycle bin, otherwise all you are doing is move the contents to another folder, only to empty the recycle bin and repeat the process - so cut out the middle man.

    Badmail is basically bad mail. NDRs and other non-deliverable items. Nice idea from Microsoft to store it all, except no one knew about it, or checked it regularly. Fortunately Microsoft saw the light and disabled it by default with the later versions of Exchange - it can be enabled with a registry hack if required.


    Expert Comment

    I have tried using the badmail admin tool from Microsoft and all I get is
    C:\Program Files\Exchsrvr\mailroot\vsi 1\badmail: bytes total
    Err.Number: 6
    Err.Description: Overflow
    Err.Source: Microsoft VBScript runtime error

    The folder has about 3gb in data in it though.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Granting full access permission allows users to access mailboxes present in their database. By giving full access permission one can open and read the content of any mailbox but cannot send emails from that mailbox.
    Find out how to use Active Directory data for email signature management in Microsoft Exchange and Office 365.
    In this video we show how to create a mailbox database 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 Servers >> Data…
    In this Micro Video tutorial you will learn the basics about Database Availability Groups and How to configure one using a live Exchange Server Environment. The video tutorial explains the basics of the Exchange server Database Availability grou…

    779 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

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now