Re: Some badmail info

  • From: "Michael B. Smith" <michael@xxxxxxxxxx>
  • To: "[ExchangeList]" <exchangelist@xxxxxxxxxxxxx>
  • Date: Wed, 8 Sep 2004 08:17:54 -0400

Here is something somewhat improved. This will minimize your downtime:

net stop smtpsvc
cd "\Program Files\Exchsrvr\Mailroot\vsi 1"
rename BadMail Badmail-save
net start smtpsvc
cd Badmail-save
del /Q *.*
cd ..
rmdir Badmail-save

And if the server is at least Exchange 2000 sp 3 or above, Microsoft's
tool is: 
 
http://www.microsoft.com/downloads/details.aspx?FamilyID=782aaf0f-6239-4
0ad-adda-97863d852ff7&DisplayLang=en
 
And this was a good idea, so I wrote a blog entry about it:
 
http://blogs.brnets.com/michael/archive/2004/09/08/203.aspx

________________________________

From: John Tolmachoff (Lists) [mailto:johnlist@xxxxxxxxxxxxxxxxxxx] 
Sent: Wednesday, September 08, 2004 1:57 AM
To: [ExchangeList]
Subject: [exchangelist] Re: Some badmail info


http://www.MSExchange.org/


Create and schedule use of a batch file.

 

Something on the order of:

 

@echo off

CD C:\Inetpub\mailroot\badmail\ (Change to reflect your actual badmail
directory)

C:

Del *.* /Y

 

NOTE: 2 of the above parameters need to be changed for NT 4.0. The above
is for NT 5.x.

 

John Tolmachoff

Engineer/Consultant/Owner

eServices For You

 

-----Original Message-----
From: Ozone InfoEngg [P]Ltd [mailto:aphaleabhijit@xxxxxxxxx] 
Sent: Tuesday, September 07, 2004 8:42 PM
To: [ExchangeList]
Subject: [exchangelist] Re: Some badmail info

 

http://www.MSExchange.org/ 

Dear Sir,

We are facing the Problem for Exchange2000. How to solve the Problem as
the harddisk is getting full (with rate 5 MB/min)

If it is possible pl tell the solution for it 

Regards 

Abhijit 

"Shevill, Mark M SITI-ITIBCE22" <Mark.Shevill@xxxxxxxxx> wrote:

        http://www.MSExchange.org/


        What happened to Badmails in Exchange 2003 SP1?
<http://blogs.msdn.com/exchange/archive/2004/07/20/188856.aspx>  


        What are badmails?
         
        Badmails are mail that the Exchange server cannot deliver or NDR
(non-delivery report). A common source of badmails comes from the
unsuccessful attempt to deliver an DSN (delivery status notifiction. NDR
is a form of DSN).  We keep badmails around primarily for diagnostics.
         
        Badmails accumulate in the Exchange badmail folder (by default
Exchsrvr\Mailroot\vsi x\Badmail). Before Exchange 2003 SP1, badmails are
written to the folder until the hard disk is full.
         
        What has changed in Exchange 2003 SP1?
         
        In Exchange 2003 SP1, out of the box, we do not write any
badmails. Anything that is destined to badmail will disappear by
default. Two regkeys are added to adjust the related behavior. They are
briefly discussed as follows and there will eventually be a KB with more
details on this.
         
        Why did we make the change?
         
        What we found out is that badmails are not commonly used. Many
administrators simply delete the contents of the badmail folder
periodically. Another reason is that if badmails are allowed to build up
unchecked, the server runs out of disk space eventually.
         
        If you do not care and do not want to see badmails, Exchange
2003 SP1 is perfect. Just install Exchange 2003 SP1, and badmails will
no longer be an issue. If you want to keep some badmails around, read
on...
         
        About the regkeys:
         
        You will need to add these under:
HKEY_LOCAL_MACHINE\\System\\CurrentControlSet\\Services\\SMTPSVC\\Queuin
g
         
        MaxBadMailFolderSize is the maximum number in kilobytes that the
system will write badmail to each badmail folder. This setting applies
to all badmail folders under the various VSI's that you may have. Once a
badmail folder hits the size, badmail will stop being written. Just to
be perfectly clear, this is NOT a circular buffer. Once the badmail
folder hits the limit, badmail writing will stop - your old badmails
stay in the folder, and you will not get any new badmails. Using a value
of -1 (0xffffffff hex in regedit) will give you the same functionality
as in pre Exchange 2003 Sp1 Exchange, that is, badmails grow unbound.
When the regkey is not set, it is 0: no badmail written.
         
        BadMailSyncPeriod (in minutes) is how often Exchange looks in
the system to see if badmails have been deleted. The server caches of
the size of the badmail folder for performance reasons. This is used
only when a MaxBadMailFolderSize is specified. The default, if regkey is
not set, is 12 hours.
         
        Together with the badmail script released in WR Feb 04, there is
a lot of flexibility in dealing with badmails. Alvin Mok has written
about the badmail script
<http://blogs.msdn.com/exchange/archive/2004/05/25/141527.aspx> . You
can, for example,

                   - Set MaxBadMailFolderSize to a number that you want
to allocate for badmails. 
                   - Use the badmail script to archive/delete badmails
periodically as required. 
         
        Doing so will allow you to keep the badmails around for the
period of time you desire. With the regkey, you can be sure that the
server only writes up to a certain amount of badmails. Having the
maximum protects your server when tons of un-expected badmails are
generated.

         

        Mark Shevill

        IMG Messaging Technical Lead 
        Shell Information Technology International Limited 
        Rowlandsway, Wythenshawe, Manchester M22 5SB, United Kingdom 

        Tel: +44 161 435 8709 Fax: +44 161 933 3502 Other Tel: +44 7932
625510 
        Email: Mark.Shevill@xxxxxxxxx 
        Internet: http://www.shell.com <http://www.shell.com/>  

         

        ------------------------------------------------------
        List Archives:
http://www.webelists.com/cgi/lyris.pl?enter=exchangelist
        Exchange Newsletters:
http://www.msexchange.org/pages/newsletter.asp
        Exchange FAQ:
http://www.msexchange.org/pages/larticle.asp?type=FAQ
        ------------------------------------------------------
        Other Internet Software Marketing Sites:
        World of Windows Networking: http://www.windowsnetworking.com
        Leading Network Software Directory: http://www.serverfiles.com
        No.1 ISA Server Resource Site: http://www.isaserver.org
        Windows Security Resource Site: http://www.windowsecurity.com/
        Network Security Library: http://www.secinf.net/
        Windows 2000/NT Fax Solutions: http://www.ntfaxfaq.com
        ------------------------------------------------------
        You are currently subscribed to this MSEXchange.org Discussion
List as: aphaleabhijit@xxxxxxxxx
        To unsubscribe visit
http://www.webelists.com/cgi/lyris.pl?enter=exchangelist
        Report abuse to listadmin@xxxxxxxxxxxxxx 

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com
------------------------------------------------------ List Archives:
http://www.webelists.com/cgi/lyris.pl?enter=exchangelist Exchange
Newsletters: http://www.msexchange.org/pages/newsletter.asp Exchange
FAQ: http://www.msexchange.org/pages/larticle.asp?type=FAQ
------------------------------------------------------ Other Internet
Software Marketing Sites: World of Windows Networking:
http://www.windowsnetworking.com Leading Network Software Directory:
http://www.serverfiles.com No.1 ISA Server Resource Site:
http://www.isaserver.org Windows Security Resource Site:
http://www.windowsecurity.com/ Network Security Library:
http://www.secinf.net/ Windows 2000/NT Fax Solutions:
http://www.ntfaxfaq.com
------------------------------------------------------ You are currently
subscribed to this MSEXchange.org Discussion List as:
johnlist@xxxxxxxxxxxxxxxxxxx To unsubscribe visit
http://www.webelists.com/cgi/lyris.pl?enter=exchangelist Report abuse to
listadmin@xxxxxxxxxxxxxx

------------------------------------------------------
List Archives: http://www.webelists.com/cgi/lyris.pl?enter=exchangelist
Exchange Newsletters: http://www.msexchange.org/pages/newsletter.asp
Exchange FAQ: http://www.msexchange.org/pages/larticle.asp?type=FAQ
------------------------------------------------------
Other Internet Software Marketing Sites:
World of Windows Networking: http://www.windowsnetworking.com
Leading Network Software Directory: http://www.serverfiles.com
No.1 ISA Server Resource Site: http://www.isaserver.org
Windows Security Resource Site: http://www.windowsecurity.com/
Network Security Library: http://www.secinf.net/
Windows 2000/NT Fax Solutions: http://www.ntfaxfaq.com
------------------------------------------------------
You are currently subscribed to this MSEXchange.org Discussion List as:
michael@xxxxxxxxxx
To unsubscribe visit
http://www.webelists.com/cgi/lyris.pl?enter=exchangelist
Report abuse to listadmin@xxxxxxxxxxxxxx 

Other related posts: