Problem with 4.80.7 rpm install.

Julian Field MailScanner at
Fri Jun 4 09:14:03 IST 2010

On 04/06/2010 08:30, Glenn Steen wrote:
> On 3 June 2010 22:17, Mark Sapiro<mark at>  wrote:
>> My system is CentOS 5. I was running MailScanner 4.80.4. In my
>> configuration I have
>> Run As User = postfix
>> Run As Group = postfix
>> I downloaded
>> <>,
>> unpacked it and ran the script as usual.
>> MailScanner --lint
>> ran normally, but when I ran
>> service MailScanner restartms
>> children died during initialization with
>> Jun  3 12:35:56 sbh16 MailScanner[22147]: Cannot create temporary Work
>> Dir /var/spool/MailScanner/incoming/22147. Are the permissions and
>> ownership of /var/spool/MailScanner/incoming correct?
>> This would then spawn another child which would die the same way.
>> It seems the install process (run as root) changed the owner of
>> /var/spool/MailScanner/incoming from postfix to root.
>> chown postfix /var/spool/MailScanner/incoming/
>> fixed the problem, but the owner shouldn't have been changed in the
>> first place.
> Thanks for the headup Mark!
That's odd, this one shouldn't happen. In the installation process (when 
it installs the mailscanner*rpm), it does this:

# Create the incoming and quarantine dirs if needed
for F in incoming quarantine incoming/Locks
   if [ \! -d /var/spool/MailScanner/$F ]; then
     mkdir -p /var/spool/MailScanner/$F
     chown root.root /var/spool/MailScanner/$F
     chmod 0755 /var/spool/MailScanner/$F

which should leave any pre-existing directories alone. Can you see any 
reason why this wouldn't work on your system?


Julian Field MEng CITP CEng
Buy the MailScanner book at

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at and

This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

More information about the MailScanner mailing list