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
Top 10 Microsoft Exchange Server tips of 2008
Database changes that enhance Exchange Server 2007 fault tolerance
How continuous replication methods affect Exchange 2007 log shipping
Analyzing Exchange ActiveSync data from .CSV report files
How to run Exchange Management Shell cmdlets in Exchange Server 2007
Eliminate .PST file use for secure email retention in Exchange 2007
Exchange Server 2007 log shipping and continuous replication
Benefits of backing up Exchange Server with Microsoft's DPM 2007
Exchange Server 2007 replication and database transaction basics
Microsoft Exchange Server 2003 database recovery methods

Microsoft Exchange Server Administration Tools
How to custom-configure a Microsoft Outlook 2007 install using OCT
Top Exchange Server performance monitoring and troubleshooting tools
Search and index Microsoft Outlook 2007 public folders
Executing an .MSP customization file in Microsoft Outlook 2007
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
Microsoft Exchange Server Administration Tools Research

Antispam Software and Spam Filtering
Microsoft Exchange Server security dos and don'ts
Troubleshooting Microsoft Exchange Server Event ID error 6009
How can I configure Exchange IMF to allow an IP address or DNS?
Tool helps identify inbound Exchange Server email flow issues
Exchange email sent to a domain using SPF authentication is returned
Configure SMTP relay restrictions in Exchange Server 2003 to stop spam
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
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.



Email Server Solutions: Exchange 2007, Exchange 2003, Exchange 2000, SharePoint
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  |  Site Map




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