Work dir permissions error on --lint
Julian Field
MailScanner at ecs.soton.ac.uk
Sun Mar 30 16:03:27 IST 2008
Jason Ede wrote:
>> -----Original Message-----
>> From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-
>> bounces at lists.mailscanner.info] On Behalf Of Julian Field
>> Sent: 29 March 2008 18:54
>> To: MailScanner discussion
>> Subject: Re: Work dir permissions error on --lint
>>
>>
>>
>> Jason Ede wrote:
>>
>>> I've an odd error, and so far can't seem to track down cause...
>>>
>>> MailScanner 4.67.6 on postfix with clamd as virus scanner on a Centos
>>> 5.1 machine
>>>
>>> I'm working on a script to update the postfix and MailScanner config
>>> on a couple of remote servers once I've configured it correctly on
>>>
>> the
>>
>>> first server. When I run a MailScanner -lint from the script file I
>>> get the following in the output.
>>>
>>> -------------------------------------
>>>
>>> SpamAssassin temp dir = /tmp/SpamAssassin-Temp
>>>
>>> SpamAssassin reported no errors.
>>>
>>> Cannot create temporary Work Dir /6203. Are the permissions and
>>> ownership of correct? at
>>>
>>>
>> That /6203 is definitely wrong. You're missing a directory setting
>> somewhere. It should be trying to create it under
>> /var/spool/MailScanner/incoming.
>>
>>> /usr/lib/MailScanner/MailScanner/WorkArea.pm line 152
>>>
>>> --------------------------------------
>>>
>>> It works fine when run from command line. I've the incoming work dir
>>> settings as below. I run clamd under the postfix user as it seemed to
>>> work that way and has been working properly for a while..
>>>
>>> Incoming Work Dir = /tmp
>>>
>>>
>> Put that setting back the way you found it, i.e.
>> /var/spool/MailScanner/incoming. Follow the instructions on the website
>> or in the wiki to the letter to start with. Once you've got it all
>> going
>> fine, then and only then can you start tweaking stuff :-)
>>
>>> Incoming Work User = postfix
>>>
>>> Incoming Work Group = postfix
>>>
>>> Incoming Work Permissions = 0640
>>>
>>>
>> I would try 0644 as otherwise you might hit trouble with clamd not
>> being
>> able to access the extracted attachment. Again, start tweaking later.
>>
>>> Any ideas?
>>>
>>>
>> Jules
>>
>
> I've gone back through it and followed instructions in the Wiki.
>
> The weird thing is it seems that MailScanner --lint barfs if I run it from root's home dir, but works fine if I run it from somewhere else such as /etc/MailScanner... Must be something there causing it problems.
>
Do you have "." in your $PATH (do "echo $PATH" to show you)? If it is,
remove it. It shouldn't be there. I can only assume there is something
else called "MailScanner" in your root's home directory.
Jules
--
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store
MailScanner customisation, or any advanced system administration help?
Contact me at Jules at Jules.FM
PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
PGP public key: http://www.jules.fm/julesfm.asc
--
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