docx problems

PSI Mailbag mailbag at partnersolutions.ca
Thu May 27 19:59:05 IST 2010


> I still can't find the problem. All the files extracted from any zips
> are created with the correct permissions. I really can't see what can
> be going wrong :-(

Hey folks,

 I updated to 4.79.11 on the weekend and I'm running into a similar
problem. Files extracted from zip's are being set with wonky
permissions, despite what's defined in MailScanner.conf. As a result,
Clamd can't scan them, and MailScanner can't delete the files from the
incoming folder as it removed its own write permissions.. so they just
get repeatedly scanned and error out until I erase them. For some odd
reason, the files are being created as 1130.

 I'm also running into the 'No programs allowed' error with JPG's within
zip files, even though running 'file' on the files directly in the
incoming folder doesn't return anything that's matched by one of the
denies.


(permissions on files attached directly in messages)
# find /var/spool/MailScanner/incoming -ls
12073626    8 -rw-r-----   1 postfix  clamav       5416 May 27 14:31
/var/spool/MailScanner/incoming/27898/61F3A746506.00000/nimage001.jpg
12073624    8 -rw-r-----   1 postfix  clamav       5416 May 27 14:31
/var/spool/MailScanner/incoming/27898/61F3A746506.00000/nimage002-1.jpg
12073622    8 -rw-r-----   1 postfix  clamav       5416 May 27 14:31
/var/spool/MailScanner/incoming/27898/61F3A746506.00000/nimage002.jpg


(permissions on files extracted from zips)
# find /var/spool/MailScanner/incoming -ls
12124279   16 ---x-wx--T   1 postfix  clamav      13699 May 27 11:30
/var/spool/MailScanner/incoming/28979/8C274746532.00000/zDSC02393.jpg
12124278    4 ---x-wx--T   1 postfix  clamav         82 May 27 11:30
/var/spool/MailScanner/incoming/28979/8C274746532.00000/z._DSC02392.jpg
12124277   20 ---x-wx--T   1 postfix  clamav      18810 May 27 11:30
/var/spool/MailScanner/incoming/28979/8C274746532.00000/zDSC02392.jpg
12124276    4 ---x-wx--T   1 postfix  clamav         82 May 27 11:29
/var/spool/MailScanner/incoming/28979/8C274746532.00000/z._DSC02391.jpg


Incoming Work User =
Incoming Work Group = clamav
Incoming Work Permissions = 0640
Run As User = postfix
Run As Group = postfix

MTA is Postfix 2.3.3; OS is CentOS 5.5, using the MailScanner gold RPM
repo.

 Thanks,
-Joshua


More information about the MailScanner mailing list