Help - Search - Members - Calendar
Full Version: Exchange 2003 SP1
ieXbeta Board > Tech > Software Corner
Phonics Monkey
Greetings
Was doing some checking up on the office server (it's a clusterfuck...) and discovered we were getting (hammered) 100+ badmails an hour which was fragmenting the drive to hell (considering some idiot put the whole shebang on one partition...and won't let me fix it.).

But on a brighter note I did find a helpful new feature in Exchange 2003 SP1 which will completely stop the collection of junk in the badmail folder.


For simplicity sake I'll just paste the details below:
QUOTE
Badmail changes in Exchange 2003 SP1

Prior to Exchange 2003 SP1, if your SMTP protocol virtual server didn't have anywhere to go with a timed-out email, it would drop it in the BadMail directory on your server. This directory could potentially grow and grow without bounds until it filled up the disk, etc.

There are two big changes to Badmail in the SP1 timeframe: one in SP1 directly, and one in the WebRelease "WR1".

In the Web Release, a new script "Badmail Deletion and Archiving" was released that will aid in maintining the size and growth of this Badmail folder on your server. This will allow you to "trim" the directory down on a scheduled basis to keep the size under control.

However, even bigger is that by default in Exchange 2003 SP1 retaining undeliverable messages in the Badmail folder is now disabled and its behavior is controlled by a set of registry keys.

Set under: HKLM\System\CurrentControlSet\Services\SMTPSVC\Queueing
Value: MaxBadMailFolderSize  

This is a DWORD which defaults to 0 if not set. It is the max size (in KB) that the Badmail folder can grow to before Badmail retension is stopped; thus setting it to 0 turns off the Badmail folder and prevents possible DoS attacks. Messages that would have been sent to Badmail will simply be discarded if the MaxBadMailFolderSize is set to 0. If you set this to -1 (0xFFFFFFFF in hex) it will revert to the pre-SP1 behavior of growing without bound.

Value: BadMailSyncPeriod

This is a DWORD which specifies how often we should check the size of the badmail folder (in minutes). If the BadMailSyncPeriod has not been reached, we won't rescan the directory and discover if Badmail items have been removed manually by the Admin.
Taco Bell
Yeah, I know all about that BadMail directory. I have to clean it up every month on our Exchange 2000 server and takes a long time to for Windows to delete all of the accumulated files.

Nice to see they did something about it though in Exchange 2003. Even if it is SP1/WR1.

However, I believe this is better suited to "Software Corner", than "Networking Corner", so ... **moving post**
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.