problem with attachment, could not unpack TNEF (could not create subdirectory

Glenn Steen glenn.steen at gmail.com
Wed Dec 15 14:47:44 GMT 2010


On 15 December 2010 13:25, mb <mb at sbbs.se> wrote:
> Hi,
>
>
>
> I get this, probably a permission error. Question is where?
>
>
>
> Dec 15 10:48:02 mx02 MailScanner[15560]: New Batch: Scanning 1 messages,
> 41747 bytes
>
> Dec 15 10:48:02 mx02 MailScanner[15560]: Expanding TNEF archive at
> /var/spool/MailScanner/incoming/15560/B019B18313.AD4E7/winmail.dat
>
> Dec 15 10:48:02 mx02 MailScanner[15560]: Trying to unpack nwinmail.dat in
> message B019B18313.AD4E7, could not create subdirectory
> B019B18313.AD4E7/tnefGu5NqR, failed to unpack TNEF message
>
> Dec 15 10:48:02 mx02 MailScanner[15560]: Corrupt TNEF winmail.dat that
> cannot be analysed in message B019B18313.AD4E7
>
>
>
> Tried to circumvent it by adding ‘Deliver Unparsable TNEF = yes’, but that
> did not help.
>
>
>
> Permissions of: /var/spool/MailScanner
>
>
>
> drwxr-x---  5 postfix postfix  4096 2010-11-08 10:44 .
>
> drwxr-xr-x  6 root    root     4096 2010-11-08 10:44 ..
>
> drwxr-x---  2 postfix postfix  4096 2010-10-21 11:39 archive
>
> drwxrwx--- 10 postfix clamav   4096 2010-12-15 13:17 incoming
>
> drw-rw----  2 postfix www-data 4096 2010-11-17 06:25 quarantine
>
>
>
> As MailScanner is run as user postfix, and clam as user clamav, I suspect
> that it should be owned by postfix:postfix, add clamav to postfix group and
> finally a more generous chmod. Is that correct?
>
Your permissions are fine, most likely, so don't go changing them on a
whim... I don't really remember exactly where the TNAF expander writes
its temp files, but a guess would be /tmp, so ... check that postfix
has perms to write/create directories there... Also, do you use the
external or internal TNEF expander?

Cheers
-- 
-- Glenn
email: glenn < dot > steen < at > gmail < dot > com
work: glenn < dot > steen < at > ap1 < dot > se


More information about the MailScanner mailing list