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

mb mb at
Wed Dec 15 12:25:45 GMT 2010



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

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? 

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the MailScanner mailing list