tnef leftovers in /var/spool/postfix/hold.

David Lee dlee.aus at gmail.com
Wed Jul 18 01:22:09 IST 2012


> Hello all.
> My system seems to unpack the tnef files in the hold dir from postfix.
>
> Is there a way i can tell the system to do it in
/var/spool/MailScanner/incoming.
> I have all these messages.
>
> Jul  4 00:00:06 ms03 postfix/showq[71821]: warning: hold/tnefzUwzPu: uid
100: not a regular file
> Jul  4 00:00:06 ms03 postfix/showq[71821]: warning: hold/tnef6tMSaE: uid
100: not a regular file
> Jul  4 00:00:06 ms03 postfix/showq[71821]: warning: hold/tnefDVEwIz: uid
100: not a regular file
> Jul  4 00:00:06 ms03 postfix/showq[71821]: warning: hold/tnef5rx4X7: uid
100: not a regular file
> Jul  4 00:00:06 ms03 postfix/showq[71821]: warning: hold/tnefATGL1A: uid
100: not a regular file
> Jul  4 00:00:06 ms03 postfix/showq[71821]: warning: hold/tnefas99Jg: uid
100: not a regular file
> Jul  4 00:00:06 ms03 postfix/showq[71821]: warning: hold/tnefu8KzxG: uid
100: not a regular file
> Jul  4 00:00:06 ms03 postfix/showq[71821]: warning: hold/tnefbMU6hy: uid
100: not a regular file
> Jul  4 00:00:06 ms03 postfix/showq[71821]: warning: hold/tnef4IxytK: uid
100: not a regular file
> Jul  4 00:00:06 ms03 postfix/showq[71821]: warning: hold/tnefzeaRuQ: uid
100: not a regular file
>
> Thank you for your time
>
> Regards
> Johan Hendriks

I've just built a new Mailscanner server on a Red Hat 6.3 system and also
noticed the creation of these files in the Postfix hold directory. After
having a bit of a look at the code, I think I have found the problem.
The problem lies in the 'ExternalDecoder' subroutine of the TNEF.pm module.
Two temporary directories are created there (one using 'tempdir', the other
by 'mkdir'), but only one is deleted (the one created using 'mkdir'). It
appears that the TNEF files are being unpacked into the
'/var/spool/MailScanner/incoming' directory as specified.
I suspect these temporary hold queue directories eventually get removed
when the associated MailScanner process that created them is killed and
restarted.

--
David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.mailscanner.info/pipermail/mailscanner/attachments/20120718/c0bb8aac/attachment.html 


More information about the MailScanner mailing list