mqueue file permissions

Julian Field mailscanner at
Wed Jan 29 18:10:22 GMT 2003

At 17:46 29/01/2003, you wrote:
>I've been seeing problems with the mqueue qf file modes when SpamAssassin is
>enabled, I've used both SpamAssassin 2.43 and 2.50.  The qf files are being
>delivered to the mqueue directory mode 664 instead of 600 which sendmail then
>complains about bogus uid even though it's the permission.  Has anyone seen
>this before?

I have moved the call to umask the other side of the daemonising code in
case it wasn't being propagated to the child processes properly.

If you want to try it for yourself, add a line saying
         umask 0077;
near the top of the "WorkForHours" subroutine in the main
/usr/sbin/MailScanner script.

>Jan 29 09:34:34 alpha sendmail[7657]: h0THY4D07651: bogus queue file, uid=0,
>Jan 29 09:34:34 alpha sendmail[7657]: h0THY4D07651: Losing ./qfh0THY4D07651:
>bogus file uid in mqueue
>-rw-------    1 root     root            7 Jan 29 09:34 dfh0THY4D07651
>-rw-rw-r--    1 root     root          894 Jan 29 09:34 Qfh0THY4D07651
>Brian Peterson
>mailto:kaos at

Julian Field
MailScanner thanks transtec Computers for their support

More information about the MailScanner mailing list