Problem with "Use TNEF Contents" ?

Michael H. Martel martelm at
Thu Mar 2 19:11:04 GMT 2006


I love the new version. :)  However, I'm seeing an oddity.  On messages 
that contain winmail.dat attachments, the contents appear to be added to 
the message, even though the setting in the config file is replace.

Am I reading this wrong ?  Replace indicates that it should remove the 

I've included the section of my .conf file and the output of MailScanner 
--lint and MailScanner -v


# Expand TNEF attachments using an external program (or a Perl module)?
# This should be "yes" unless the scanner you are using (Sophos, McAfee) has
# the facility built-in. However, if you set it to "no", then the filenames
# within the TNEF attachment will not be checked against the filename rules.
Expand TNEF = yes

# When the TNEF (winmail.dat) attachments are expanded, should the
# attachments contained in there be added to the list of attachments in
# the message?
# If you set this to "add" or "replace" then recipients of messages sent
# in "Outlook Rich Text Format" (TNEF) will be able to read the attachments
# if they are not using Microsoft Outlook.
# no      => Leave winmail.dat TNEF attachments alone.
# add     => Add the contents of winmail.dat as extra attachments, but also
#            still include the winmail.dat file itself. This will result in
#            TNEF messages being doubled in size.
# replace => Replace the winmail.dat TNEF attachment with the files it
#            contains, and delete the original winmail.dat file itself.
#            This means the message stays the same size, but is usable by
#            non-Outlook recipients.
# This can also be the filename of a ruleset.
#Use TNEF Contents = replace
Use TNEF Contents = replace

[root at hemlock etc]# /opt/MailScanner/bin/MailScanner --lint
Read 710 hostnames from the phishing whitelist
Config: calling custom init function MailWatchLogging
Cannot write pid file , No such file or directory at 
/opt/MailScanner/bin/MailScanner line 1238
Checking for SpamAssassin errors (if you use it)...
Using SpamAssassin results cache
Connected to SpamAssassin cache database
SpamAssassin reported no errors.

MailScanner.conf says "Virus Scanners = clamav mcafee bitdefender f-prot"
Found these virus scanners installed: bitdefender, f-prot, clamav, mcafee
[root at hemlock etc]# /opt/MailScanner/bin/MailScanner -v
Running on
Linux 2.4.20-28.7smp #1 SMP Thu Dec 18 11:18:31 EST 2003 
i686 unknown
This is Red Hat Linux release 7.3 (Valhalla)
This is Perl version 5.008006 (5.8.6)

This is MailScanner version 4.51.4
Module versions are:
1.00    AnyDBM_File
1.16    Archive::Zip
1.03    Carp
1.119   Convert::BinHex
1.00    DirHandle
1.05    Fcntl
2.73    File::Basename
2.08    File::Copy
2.01    FileHandle
1.06    File::Path
0.16    File::Temp
1.32    HTML::Entities
3.48    HTML::Parser
2.35    HTML::TokeParser
1.21    IO
1.10    IO::File
1.123   IO::Pipe
1.71    Mail::Header
3.05    MIME::Base64
5.419   MIME::Decoder
5.419   MIME::Decoder::UU
5.419   MIME::Head
5.419   MIME::Parser
3.03    MIME::QuotedPrint
5.419   MIME::Tools
0.11    Net::CIDR
1.08    POSIX
1.77    Socket
0.05    Sys::Syslog
1.86    Time::HiRes
1.02    Time::localtime

Optional module versions are:
0.17    Convert::TNEF
1.811   DB_File
1.11    DBD::SQLite
1.50    DBI
1.08    Digest
1.01    Digest::HMAC
2.36    Digest::MD5
2.10    Digest::SHA1
0.44    Inline
missing Mail::ClamAV
3.001000        Mail::SpamAssassin
1.997   Mail::SPF::Query
0.18    Net::CIDR::Lite
0.48    Net::DNS
0.32    Net::LDAP
1.94    Parse::RecDescent
missing SAVI
1.2     Sys::Hostname::Long
2.42    Test::Harness
0.47    Test::Simple
1.95    Text::Balanced
1.35    URI



   Michael H. Martel              | Systems Administrator
   michael.martel at         | Vermont State Colleges    | PH:802-241-2544 FX:802-241-3363

More information about the MailScanner mailing list