fortypoundhead.com

Append text to SMTP e-mails in Exchange Server 5.5

Posted On 2007-05-02 by FortyPoundHead
Keywords: XADMIN SMTP
Tags: Exchange 
Views: 1701


Within any organization, an Exchange administrator may wish to have a header or footer attached to all incoming or outgoing messages, such as a disclaimer or other legal notice. Doing this requires use of the Internet Mail Service Extension DLL, known as IMSEXT.DLL.

This .DLL is included with the Microsoft BackOffice Resource Kit and is not installed by default, so it needs to be installed before it can be used.

Copy the IMSEXT.DLL file to the Exchsrvr\Connect\Msexcimc\Bin folder on the Exchange server in question.

In that folder, run the command

REGSVR32 IMSEXT.DLL

This will register the DLL with Windows.

If you are running Exchange Server 5.5 SP1 or later, you'll need to make a Registry edit to avoid losing routing tables. Under

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\MSExchangeIMC\Parameters,

add the following value:

Value Name: NonRoutingExtensionDll
Data Type: REG_SZ
String Value: Drive and path to IMSEXT.DLL

Under

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ MSExchangeIMC\Parameters,

add a new key named Extension.

Stop and restart the Internet Mail Service.

In the Extension key, add the following values based on what kind of messages you want to add to incoming or outgoing mails.

To have incoming mail sport a header text in the body of the message, add a string value named InboundPrepend. For appended text, add a string value named InboundAppend.

To add a header to outbound messages, add a string named OutboundPrepend. To append text, add a string named OutboundAppend.
The value of each of these strings is the text of the message to add, with the following RTF-style control characters:

\b -- Bold on
\b0 -- Bold off
\i -- Italics on
\i0 -- Italics off
\ul -- Underline on
\ul0 -- Underline off
\plain -- Plaintext--All formatting off
\par -- New line or new paragraph
\tab -- Tab in five spaces

So to encode the message

This mail has been sent in confidence.
If you are not the recipient, contact outbox@domain.com immediately.

-- use the following text:

This mail has been sent in confidence.par If you are not the recipient, contact outbox@domain.com immediately.

Note the use of par for the line break.







About the Author

FortyPoundHead has posted a total of 1974 articles.

 


Comments On This Post

No comments on this post yet!


Do you have a thought relating to this post? You can post your comment here. If you have an unrelated question, you can use the Q&A section to ask it.

Or you can drop a note to the administrators if you're not sure where you should post.


Your IP address is:54.156.92.140

Before you can post, you need to prove you are human. If you log in, this test goes away.



Recent Forum Posts

Fold Code Manager into main KB?
dwirch posted on July 20, 2017 at about 7:55 in Site News

Job Spammer: Sam Mallon
dwirch posted on July 18, 2017 at about 18:36 in Spammers

When setting up a certificate authority ...
dwirch posted on July 13, 2017 at about 9:07 in General

Q&A borked
dwirch posted on July 4, 2017 at about 7:27 in Site News

Q&A borked
dwirch posted on June 27, 2017 at about 7:00 in Site News

SSL Now Active
dwirch posted on June 16, 2017 at about 8:40 in Site News