# MailScanner Installation Guide — TNEF Decoder

In order to check inside Microsoft Outlook Rich Text format attachments, a separate decoder program is required to unpack them. Fortunately, this is very simple to build and install.

However, if you have problems building this program or you find that it cannot decode some of your Outlook Rich Text messages, a Perl alternative is provided which you may choose to use instead. To use the Perl decoder, set the configuration option "`TNEF Expander = internal`" in your mailscanner.conf configuration file.

1. Inside the mailscanner/bin directory, you will find the latest version of "tnef" including a maxsize patch.
2. Unpack the archive
   `gunzip tnef-1.1.1+sizelimit.tar.gz
   tar xf tnef-1.1.1+sizelimit.tar`
3. Build it
   `cd tnef-1.1.1
   ./configure
   make`
4. Install it
   `cp src/tnef /opt/mailscanner/bin/tnef`

If you wish to use this TNEF decoder and have trouble building it, or it won't compile, then I suggest you read my notes on compiling with Solaris and gcc.

Julian Field