getting Mailscanner to work with Mailwatch/Postfix
John Baker
johnnyb at marlboro.edu
Tue Mar 18 19:25:39 GMT 2008
Yeah, I'm seeing what happened here now. I didn't differentiate between
the permissions on the directories and those on the files and did a mass
chmod -R 660 on the quarantine directory. The default for the quarantine
directory appears to be 751 but the subdirectories are 700 while the
files get written as whatever is in the Mailscanner.conf.
It looks like the solution is to share group ownership with www-data and
give the directories 770 permission.
Can anyone explain what decides the subdirectory permissions when new
ones are created? The only worry I have now is that the new one
tomorrow and its subdirectories are still written to 700 rather than the
770 that I changed the rest to.
Thanks
Glenn Steen wrote:
> On 18/03/2008, Julian Field <MailScanner at ecs.soton.ac.uk> wrote:
>> -----BEGIN PGP SIGNED MESSAGE-----
>> Hash: SHA1
>>
>>
>>
>>
>> Scott Silva wrote:
>> > on 3-17-2008 10:10 AM John Baker spake the following:
>> >> I did indeed forget that you need to execute bit on for a process to
>> >> create a directory. Hey, its been a while since Unix 101. :)
>> >>
>> >> But the source of confusion here for me as much as the Mailwatch wiki
>> >> ,which I did take the directions from, is that the default
>> >> Mailscanner.conf file has Quarantine Permissions = 0600 leading one
>> >> to believe that the execute bit is not necessary. This is in the
>> >> Mailscanner book as well.
>> >>
>> >> What is the function of this line in the file? It seems to be ignored
>> >> by the actual process.
>> >>
>> > Remember, Julian originally wrote MailScanner to run with sendmail as
>> > root, so it didn't have the permission changes that newer MTA's
>> > require to NOT run as root.
>> >
>>
>> But I wrote in the non-root support for the other MTA's quite a long
>> time ago. It should all work okay.
>>
> Works. Not should work.;-).
>
> (someone is bound to start the MUST and SHOULD definition war all over
> again... :-)
> Cheers
--
John Baker
Network Systems Administrator
Marlboro College
Phone: 451-7551 off campus; 551 on campus
More information about the MailScanner
mailing list