Exchange Server 2007 administrators can use cmdlets to easily customize mail quota warnings and Delivery Status Notification (DSN) messages. "Cmdlets" (pronounced commandlets) are command-line administrative functions built using Microsoft's PowerShell technology.
To change the Delivery Status Notification message for the DSN error 5.2.2 ("mailbox is full"), you could supply the following cmdlet, all on one line:
New-SystemMessage –DsnCode 5.2.2 –Language En –Internal $false –Text "Sorry, that mailbox is filled to bursting with other messages. You'll have to try again later when they've read a few things."
The syntax is fairly straightforward:
- DsnCode lets you specify which exact error message to supply a custom string for
- Language indicates which language to use for the string (in this case, English)
- Internal, set here to $false, means that this message will be presented to external (i.e., SMTP) users only.
- Text describes the text of the error message, delimited by double quotes.
To change a quota message, you'd use a syntax like this:
New-SystemMessage –QuotaMessageType WarningMailbox –Language En –Text "Your mailbox is becoming dangerously full. Please remove some messages or talk to your administrator about having your mail account upgraded."
- QuotaMessageType describes what kind of quota message this is, with WarningMailbox being one of several valid possibilities.
The other options are self-evident here; the Internal option isn't used in this instance because mail quota messages are internal by default. For a complete breakdown of the commands available, the New-SystemMessage article in the TechNet library has all the details.
Note that New-SystemMessage will only work on Exchange Server computers that have the Hub Transport or Edge Transport server role.
About the author: Serdar Yegulalp is editor of Windows Insight, a newsletter devoted to hints, tips, tricks, news and goodies for all flavors of Windows users.
Do you have comments on this tip? Let us know.
Please let others know how useful this tip was via the rating scale below. Do you have a useful Exchange Server or Microsoft Outlook tip, timesaver or workaround to share? Submit it to SearchExchange.com. If we publish it, we'll send you a thank-you gift only an IT geek could love.