Error expanding TNEF attachments in new 4.84.5-2

Adri Koppes adrik at salesmanager.nl
Tue Mar 13 14:34:51 GMT 2012


Kevin,

I also recently installed tnef 1.4.9.
But the new tnef 1.4.9 works fine with the older MailScanner 4.83.5.
Also the error seems to be generated by MailScanner in TNEF.pm when it
tried to create a temporary subdirectory, before the external tnef
program is run.

Adri.

-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info
[mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Kevin
Kobb
Sent: dinsdag 13 maart 2012 14:29
To: MailScanner discussion
Subject: Re: Error expanding TNEF attachments in new 4.84.5-2


On 3/13/2012 9:13 AM, Adri Koppes wrote:
> Jeremy,
> 
>  
> 
> The perms are 755, owner is root and group is clamav.
> 
> But the incoming/* directories are created by MailScanner, so setting 
> correct perms should be done by MailScanner.
> 
> Also the same setup worked fine with version 4.83.5.
> 
> If I replace 'lib/MailScanner/TNEF.pm' with the corresponding file 
> from version 4.83.5, then everything works fine again.
> 
>  
> 
> Adri.
> 
>  
> 
>  
> 
> *From:*mailscanner-bounces at lists.mailscanner.info
> [mailto:mailscanner-bounces at lists.mailscanner.info] *On Behalf Of 
> *Jeremy McSpadden
> *Sent:* dinsdag 13 maart 2012 13:54
> *To:* MailScanner discussion
> *Subject:* Re: Error expanding TNEF attachments in new 4.84.5-2
> 
>  
> 
> could not create subdirectory q2DCDfuq022124//tnefdDM1SB
> 
>  
> 
> Check perms
> 
> --
> 
> Jeremy McSpadden
> 
> Flux Labs, Inc
> 
> http://www.fluxlabs.net <http://www.fluxlabs.net/> Endless Solutions
> 
> *Office* : 850-588-4626
> 
> *Cell* : 850-890-2543
> *Fax* : 850-254-2955
> 
>  
> 
> *From: *Adri Koppes <adrik at salesmanager.nl 
> <mailto:adrik at salesmanager.nl>>
> *Reply-To: *MailScanner discussion <mailscanner at lists.mailscanner.info
> <mailto:mailscanner at lists.mailscanner.info>>
> *Date: *Tue, 13 Mar 2012 13:44:55 +0100
> *To: *MailScanner discussion <mailscanner at lists.mailscanner.info
> <mailto:mailscanner at lists.mailscanner.info>>
> *Subject: *Error expanding TNEF attachments in new 4.84.5-2
> 
>  
> 
> Julian,
> 
>  
> 
> I just updated to the last version 4.84.5-2 and noticed a bug with the

> new 'mktemp' fixes.
> 
> When I receive a message having a tnef attachment I get the following 
> messages in syslog:
> 
>  
> 
> Mar 13 13:13:45 mail MailScanner[17323]: New Batch: Scanning 1 
> messages,
> 32172 bytes
> 
> Mar 13 13:13:45 mail MailScanner[17323]: Expanding TNEF archive at 
> /usr/local/etc/MailScanner/incoming/17323/q2DCDfuq022124/winmail.dat
> 
> Mar 13 13:13:45 mail MailScanner[17323]: Trying to unpack nwinmail.dat

> in message q2DCDfuq022124, could not create subdirectory 
> q2DCDfuq022124//tnefdDM1SB, failed to unpack TNEF message
> 
> Mar 13 13:13:45 mail MailScanner[17323]: Corrupt TNEF winmail.dat that

> cannot be analysed in message q2DCDfuq022124
> 
>  
> 
> This is using the external tnef decoder setting in MailScanner.conf
> 
> The message is not sent to the recipients, instead an 'Other Bad 
> Content Detected' report and notice is generated.
> 
>  
> 
> Best regards,
> 
>  
> 
> Adri.
> 
>  
> 
> -- MailScanner mailing list mailscanner at lists.mailscanner.info
> <mailto:mailscanner at lists.mailscanner.info>
> http://lists.mailscanner.info/mailman/listinfo/mailscanner Before 
> posting, read http://wiki.mailscanner.info/posting Support MailScanner

> development - buy the book off the website!
> 
> 
> 

Which version of tnef are you using? When I upgraded to tnef 1.4.9 I had
these problems even though I had applied the recent patches that were
posted, and all the perms looked fine.

When I went back to tnef 1.4.8, everything was OK again. I also don't
understand why tnef was touching most of these messages. I had the user
compose a single line email, composed in html, and no attachments, and
it still unpacked it. However, with tnef 1.4.8 it didn't fail at least.
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website! 


More information about the MailScanner mailing list