Monday, April 16, 2007

Eseutil Notes

If you have ever experience issues with your Exchange Information Store not starting or misbehaving you would have most likely to use Eseutil. Take care while running this command with incorrect switch.

Eseutil Function:
Eseutil.exe can be used to analyze or verify, modify & repair your exchange Information Store database files.

Exchange 2007: Eseutil can be used to perform these tasks against the ESE database files on the Exchange 2007 Edge Transport and Hub Transport server for the mailbox and public folder stores only with the Exchange 2007 version of eseutil.

Eseutil Switches :
Defragment /d [options]
Recovery /r [options]
Integrity /g [options]
Checksum /k [options]
Repair /p [options]
File Dump /m[mode-modifier]
Copy File /y [options]
Restore /c [mode-modifier] [options]

Before using Eseutil Microsoft recommend following points.

  • Eseutil can be used on offline information stores only.
  • Run eseutil on one ESE database at a time
  • Make sure you have a copy of all the files for stores (including logs, chk files etc...)

Eseutil /d Defragment (Offline Defragmentation)

This switch is same like disk defragment, it will arrange the data in the beginning of database and rebuild the index, but it removes empty pages in the database file.

This procedure is commonly known as the offline defragmentation because the information store database will be offline when we do the defragmentation while the regular nightly online defragmentation (maintenance) that occurs when the information store is online.

  • In general avoid using eseutil /d switches unless, you removed/moved a lot of mailboxes from an Exchange database file or in second case there are -1018 errors in your event logs.

  • To see how much free space you have in an Exchange Database file just check in the event logs and look for recent occurrences of event 1221 or run eseutil /ms (database should be offline during this switch)

Before using Eseutil /d - Microsoft recommend following points.

  • Make sure before running eseutil /d that you should have at least 110% of the database files size available in free disk space on volume where defragmented copy of the database file is being created.

  • Microsoft does not recommend running Eseutil /d as a regular maintenance practice, as the online maintenance takes care of this. Exchange database should be in consistent state while you run eseutil /d on it.

The additional options for Eseutil /d command are as follows:

Note none of these additional options are required
/s - set streaming file name (default: NONE)
/t - set temp. Database name (default: TEMPDFRG*.EDB)
/f - set temp. Streaming file name (default: TEMPDFRG*.STM)
/I - do not defragment streaming file
/p - preserve temporary database (ie. don't instate)
/b - make backup copy under the specified name
/8 - set 8k database page size (default: auto-detect)
/o - suppress logo

Example :

eseutil.exe /d "C:\Program Files\Exchsrvr\MDBDATA\priv1.edb" /s "C:\Program Files\Exchsrvr\MDBDATA\priv1.stm"

Exchange Message Limits Settings ( 5 Ways )

There are 5 different ways to limit message sizes in exchange.

Global Settings

This is the easiest thing to do, set the message size limit with a global setting that applies to all users.

Open up Exchange System Manager and go to Global Settings Message Delivery and right-click to open the properties. Click on the Defaults tab and enter the default size limits.

Connector Properties

Connectors are used to connect Exchange server to remote mail servers. When you send a message to a user outside of your organization it goes through a connector. You can limit the size of a message that goes through a connector.

Open up to connectors properties and on the Content Restrictions tab you can specify to allow Only messages less than (KB).

Virtual SMTP Server

Connectors only apply to outgoing mail, to limit incoming mail you can set a limit on the virtual SMTP server.
Open up ESM and go to Servers Server name Protocols SMTP and right-click on the SMTP virtual server and choose Properties; click on the Messages tab. Here you can set to limit message size to (KB).

Distribution List

When creating, or editing a Distribution List, you can specify a limit for a message size sent to members of the group.
On the Exchange General tab of the groups properties, you can set the message size limit.

Mailbox Properties

On the user level, open up the user account properties and select the Exchange General tab. Click on Delivery Restrictions and set limits here too.

DSAccess Component in Exchange

Prior to Exchagne 2000, Exchange had its own "directory service". When Exchange switched to storing Exchange data in Active Directory Microsoft needed a way for Exchange to communicate with Active Directory. From this need DSAccess was created to regulate traffic between Exchange 2000/2003 and Active Directory.

DSAccess is an API that is used by Exchange to query Active Directory. It is used when Exchange needs to obtain information on recipients and configuration. The following Exchange services are just some of the components that depends on DSAccess
- Exchange System Attendant
- Exchange Message Transfer Agent
- Exchange information store

The DSAccess cache contains two distinct caches.

1. The configuration cache
The configuration cache is used to store configuration data such as information on the store(s) and routing and is 5MB is size. When the Exchange server starts up DSAccess discovers the Active Directory topology, a list of domain controllers and global catalog servers. This is repeated every 15 minutes looking for configuration changes. Every time an Exchange server requires DC or GC access, the configuration cache is viewed to find an available DC or GC.

2. The user objects cache.
The other cache, the user object cache, is used to store user data. When an Exchange server needs to locate information on a user, DSAccess will look in this cache first, before performing an LDAP query. User objects in the cache expire based on two criteria, either the TTL expires, or the cache is filled and needs to cache newer information. The default size of the cache is 140MB.

DSAccess is composed of a group of DLLs.
- DSAccess.dll
- Dscmgs.dll
- Dscperf.dll

Excluding User(s) From IMF in Exchange

Exchange 2003 SP2 offers a new feature called Intelligent Message Filter which provides Spam protection for users with mailboxes on the Exchange server. There are some cases when you may have a user, or users who do not wish to have their mail filtered and rely on other methods for Spam prevention.

You have to install a Hot Fix KB912587, This is an unsupported hot fix that has not passed regression testing, and so make sure you test it before you deploy this in your production environment.

With the hot fix installed, there are a few registry settings you need to configure. Open up the registry for editing and drill down too


Create a new key called ContentFilter and under this create a new DWORD called CheckRecipients. You have two options for IMF exclusion

- Inclusive - Setting the value of CheckRecipients to 1 will cause the IMF filter to be bypassed as long as one recipient is on the list of recipients.
If an email is sent to 10 people in the organization, and one of those users is excluded from IMF, the message will not be filtered for anyone.
- Exclusive - Setting the value of CheckRecipients to 2 will cause the IMF filter to be bypassed only is all recipients are on the list. If an email is sent to 10 people in the organization, all the recipients must be excluded from IMF for the message to pass through unfiltered. If even one user is not on the list the message will pass through IMF.

Finally you need to create a new Multi-String called RecipList and enter the SMTP address of the recipients you want to exclude from IMF.

MS Exchange 2007 Certification Range

Check this new Microsoft Certification range for Exchange 2007.

Recover Shift Deleted Mails through OWA

If you have deleted some mails with shift delete key, you can't recover through Recover Deleted Items in outlook.

OWA can also help in this case . . . open OWA with below link & enjoy recovering. . .

http://(Exchange Server Name)/Exchange/(User Logon ID)/(folder name)/?cmd=showdeleted

De-Emphasized & Discontinued Features in Exchange 2007

De-emphasized Features

These features are still included in the Exchange product, but they're not prioritized anymore and will most likely disappear in the next Exchange release after Exchange Server 2007.
│ Public Folders
│ Proxy Address Generators
│ CDO 1.21
│ MAPI32
│ CDOEX (CDO 3.0)
│ Exchange WebDAV extensions
│ Store Events
│ Streaming backup APIs
│ Exchange Server Virus Scanning API (VSAPI)

Discontinued Features
Because of the major architectural changes in Exchange Server 2007, several of the features and components included in previous versions of Exchange have been discontinued in Exchange Server 2007.
Architecture Features
│ Routing Groups
│ Administrative Groups
│ Link State Routing
│ Routing Objects
│ IMF (replaced by Content Filter which can be considered IMF v3)
│ Network Attached Storage (NAS)
│ Exchange installable File System (ExIFS)
│ Event Service
Recipient-Related Features
│ Exchange extensions in Active Directory Users and Computers MMC snap-in
│ Microsoft Exchange Server Mailbox Merge Wizard (ExMerge)
│ Recipient Update Service (RUS)
Mobile Features
│ Outlook Mobile Access (OMA)
│ Outlook Mobile Access Browse
│ Always-Up-To-Date version 1 (AUTD v1)
│ S/MIME (will be back when Exchange 2007 SP1 releases)
Outlook Web Access Features
│ S/MIME Control component (will be back when Exchange 2007 SP1 releases)
│ Rules, Notes, Post Forms, Monthly Calendar view
│ Custom Forms
│ Editing personal distribution lists
│ URL commands except for free/busy, galfind, navbar, and contents
│ Public folder access
│ Exchange Web forms
Public Folder Features
│ Public Folder Management via GUI (but will be back when Exchange 2007 SP1 releases)
│ Non-MAPI top-level hierarchies in a public folder store
│ Public folder access using NNTP
│ Public folder access using IMAP4
Protocol Features
│ Network News Transfer Protocol (NNTP)
│ Management of POP3/IMAP4 via GUI (Will most likely be back when Exchange 2007 SP1 releases)
│ X.400 Message Transfer Agent (MTA)
│ SMTP Virtual Server Instances
Connector Features
│ Connector for Novell GroupWise and migration tools
│ Connector for Lotus Notes (an Exchange 2007 version is under development)
HA Features
│ Active/Active (A/A) clustering
Exchange 5.5-Related Features
│ Installing Exchange 5.5. into an Exchange 2007 organization
│ Support for Exchange 5.5 in same forest as Exchange 2007
│ Installing Exchange 2007 into an organization containing Exchange 5.5 servers
│ Active Directory Connector (ADC)
│ Site Replication Service (SRS)
APIs and Development Features
│ Transport Event hooks
│ Workflow Designer (included in Exchange 2003 SDK)
│ CDO for Workflow (on Exchange 2003 media)
│ Exchange WMI classes
│ MAPI Client on Exchange Server
Tools and Management Features
│ Monitoring and Status Node
│ Message Tracking Center Node and tracking mechanism
│ Mailbox Recovery Center
│ Mailbox Management Service
│ Clean Mailbox tool
│ Migration Wizard
│ ExProfRe
│ Inter-Organization Replication tool (InterORG)

Google Groups
Subscribe to IT_Discussions
Visit this group