Home > Microsoft Exchange Tips > Exchange Server Administration Tips > Keep your BADMAIL good and clean
Exchange Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

EXCHANGE SERVER ADMINISTRATION TIPS

Keep your BADMAIL good and clean


Serdar Yegulalp, Contributor
06.21.2004
Rating: -4.00- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


By default Exchange accepts messages even when the user name is not valid so you can analyze them at a later time if you want.

Mail with these invalid user names is routed into BADMAIL, which is usually located at Program Files\Exchsrvr\Mailroot\vsi1\BadMail.

Contrary to what you might think about the way this folder works, Exchange or the system does not automatically purge BADMAIL's contents. You have to clean out BADMAIL manually.

Under exceptionally heavy traffic conditions, with a great many failed incoming messages, the BADMAIL folder can bloat up quite a bit. In fact, if the BADMAIL folder is filling up a great deal, this could be a symptom that your machine is being used as an open relay. You should double-check to make sure this is not the case, and use the messages in BADMAIL to determine who might be staging such an attack.

There are several ways to manually clean the BADMAIL folder. The first and most obvious is to create a batch file that runs once a week or at some other scheduled interval. This batch command doesn't need to be anything more than a command like: del/Qc: \Program Files\Exchsrvr\Mailroot\vsi 1\BadMail\*.*.

Note that the path listed here may be different from the actual path to the BADMAIL folder on your server. While the Exchange service does not need to be stopped to delete the files, any file that is currently in use at the time the script is run will not be deleted.

Another method is to use a program published by Microsoft, BadMailAdmin.Exe, which automatically deletes and archives BADMAIL files. The program can set a limit for the size of the directory and automatically keep it from running over that size. The program (which is for Exchange 2003 only at this time) can be downloaded here.


Serdar Yegulalp is the editor of the Windows 2000 Power Users Newsletter.

Do you have a useful Exchange tip to share? Submit it to our monthly tip contest and you could win a prize and a spot in our Hall of Fame.

Rate this Tip
To rate tips, you must be a member of SearchExchange.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


RELATED CONTENT
Exchange Server Administration Tips
Why too much memory can hurt Exchange Server 2007 performance
Microsoft Exchange Server backup method pros and cons
Migrating .PST files to an Exchange Server information store
Virtualizing Exchange Server 2007 with Microsoft's Hyper-V
Configure SMTP connection limits in Exchange Server 2003 and SBS
Five Microsoft Exchange Server backup worst practices
How to export Global Address List data to Microsoft Office Access
Create a group policy to prevent .PST file storage in Exchange 2007
Synchronizing the Windows Mobile emulator with Exchange Server 2007
Considerations for virtualizing an Exchange Server environment

Microsoft Exchange Server Administration Tools
Using the NTBackup tool for Exchange Server backup and recovery
Tools to bulk modify Active Directory users in Exchange Server 2003
Free tools keep Microsoft Outlook visible in Windows Vista
Setting up email disclaimers and signatures in Exchange Server
Tool deploys customized Microsoft Outlook 2007 configurations
Third-party Exchange Server 2007 backup and restore tools
Customizing an Outlook Web Access 2003 email signature
Tool exports messages from Microsoft Outlook to Unix .EML file format
Monitor mail flow with the Exchange Server 2007 Queue Viewer tool
Use Performance Monitor to detect Exchange 2003 message queue problems
Microsoft Exchange Server Administration Tools Research

Antispam Software and Spam Filtering
Secure Edge Transport servers using the Security Configuration Wizard
Create a global Safe Senders List in Exchange 2007 to filter spam
Migrating antispam settings from Exchange 2003 to Exchange 2007
The six-layered secret of effective Exchange Server email filtering
Top 10 Exchange, Microsoft Outlook and OWA email security tips of 2007
Troubleshoot Microsoft Outlook email delivery problems
Microsoft Outlook and Exchange Server 2003 Email Security Guide
Top 5 Exchange Intelligent Message Filter add-on tools
Locate 'missing' SPF record on an external DNS domain
Native Exchange Server 2003 antispam solutions
Antispam Software and Spam Filtering Research

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
Remote Installation Service  (SearchExchange.com)
TCPMAN  (SearchExchange.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




All Rights Reserved, Copyright 2004 - 2008, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts