• Logging ‘Badmail’ Exchange 2000

    Home » Forums » Admin IT Lounge » Application servers – Exchange, IIS, Sharepoint » Logging ‘Badmail’ Exchange 2000

    Author
    Topic
    #402977

    Is there anyway to turn off logging badmail (Program Files/Exchsrvr/Mailroot/vs1/Badmail)? We are running out of room our server and I have to clean out this directory every day. What is the purpose of this directory? If we really don’t need these files (deleting them seems to make no difference)…is there anyway to have them not be created in the first place?

    Thanks in advance for your help.

    Christa

    Viewing 1 reply thread
    Author
    Replies
    • #807245

      Straight away, let me say that my Exchange knowledge is pretty shallow. After the unexpected “retirement” of our network admin, we ran into the same trouble. I would hope that the period for which bad mail is kept, or the choice not to keep bad mail at all would be a user configurable option in Exchange; a consultant told us it wasn’t and that our only choice was to delete the Bad Mail folder and create a new one. I wrote this batch file (!!) that does just that; we use Scheduled Tasks to kick it off each morning at 2 AM. Best of luck!

      REM Purpose: To remove the BadMail file in Exchange
      REM          which tends to get filled with files in 
      REM          accordance with MS KB# 324958.
      REM Created By: Shane Sargent
      REM Created On: 01/23/2004
      REM 
      REM Modified By:
      REM Modifed On:
      REM Modified Comment:
      
      REM @echo off
      
      REM *** Change directory to correct spot ***
      chdir /d C:Program FilesExchsrvrMailrootvsi 1
      
      REM *** Rename old BadMail directory ***
      rename BadMail BadMail_Old
      
      REM *** Create new BadMail directory ***
      mkdir BadMail
      
      REM *** Delete contents of, and old BadMail directory;
      REM do it in quiet mode and don't ask permission to delete the folder. ***
      rmdir /s /q BadMail_old

      Edit — link to Knowledge Base article: KB 324958

    • #807246

      Straight away, let me say that my Exchange knowledge is pretty shallow. After the unexpected “retirement” of our network admin, we ran into the same trouble. I would hope that the period for which bad mail is kept, or the choice not to keep bad mail at all would be a user configurable option in Exchange; a consultant told us it wasn’t and that our only choice was to delete the Bad Mail folder and create a new one. I wrote this batch file (!!) that does just that; we use Scheduled Tasks to kick it off each morning at 2 AM. Best of luck!

      REM Purpose: To remove the BadMail file in Exchange
      REM          which tends to get filled with files in 
      REM          accordance with MS KB# 324958.
      REM Created By: Shane Sargent
      REM Created On: 01/23/2004
      REM 
      REM Modified By:
      REM Modifed On:
      REM Modified Comment:
      
      REM @echo off
      
      REM *** Change directory to correct spot ***
      chdir /d C:Program FilesExchsrvrMailrootvsi 1
      
      REM *** Rename old BadMail directory ***
      rename BadMail BadMail_Old
      
      REM *** Create new BadMail directory ***
      mkdir BadMail
      
      REM *** Delete contents of, and old BadMail directory;
      REM do it in quiet mode and don't ask permission to delete the folder. ***
      rmdir /s /q BadMail_old

      Edit — link to Knowledge Base article: KB 324958

    Viewing 1 reply thread
    Reply To: Logging ‘Badmail’ Exchange 2000

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: