Exchange: How to view messages in the BadMail folder

exchange-2003

This is a simple question, should be somewhere in the documentation, but anyway.

How do I access this BadMail folder and view the contents of the messages in it?

Thanks!

Best Answer

In previous versions of Exchange (5.5, 2000, 2003 without service pack), all email that cannot be delivered ends up in the Badmail directory. This folder grows infinitely until it runs out of disk space.

Exchange Server 2003 Service Pack 1 changes that. By default, it will handle all "badmail" in a virtual way and no data trash is accumulated.

If you want to keep your badmail, you'll have changed a couple of registry settings:

 HKLM\System\CurrentControlSet\Services\SMTPSVC\Queuing 

 Value: MaxBadMailFolderSize   this is the size in KB.  
 Value: BadMailSyncPeriod      specifies how often to check 
                               the Badmail folder (in minutes). 

If set to 0, badmail disappears. -1 reverts to pre-SP1 settings. However, like circular logging, this doesn't "rotate" messages - just collects messages till the max folder size is reached and then stops collecting more bad mail.

On Pre-Exchange Server 2003 SP1, the badmail folder contains messages that cannot be delivered, and also cannot be returned back to the sender. Therefore, the folder typically contains spam, and the files within the folder can usually just be deleted. You should find your SMTP server on such servers looking into your virtual SMTP protocol's properties (there is a badmail folder setting).

However, Exchange doesn't provide a setting to periodically empty the contents of the folder. The danger is that this folder will go un-monitored, and will continue to fill up. This link could also be interesting to you:

Exchange Server Badmail Deletion and Archiving

Automatic deletion or archiving of files in the badmail directory of SMTP virtual servers.

Related Topic