SV: quarantine error = permission denied

John Berntsen john at OMEGADATA.NO
Sun Dec 11 22:19:50 GMT 2005


    [ The following text is in the "iso-8859-1" character set. ]
    [ Your display is set for the "US-ASCII" character set.  ]
    [ Some characters may be displayed incorrectly. ]

@page Section1 {size: 612.0pt 792.0pt; margin: 72.0pt 90.0pt 72.0pt
90.0pt; } P.MsoNormal { FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt;
FONT-FAMILY: "Times New Roman" } LI.MsoNormal { FONT-SIZE: 12pt; MARGIN:
0cm 0cm 0pt; FONT-FAMILY: "Times New Roman" } DIV.MsoNormal { FONT-SIZE:
12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman" } A:link {
COLOR: blue; TEXT-DECORATION: underline } SPAN.MsoHyperlink { COLOR:
blue; TEXT-DECORATION: underline } A:visited { COLOR: purple;
TEXT-DECORATION: underline } SPAN.MsoHyperlinkFollowed { COLOR: purple;
TEXT-DECORATION: underline } P { FONT-SIZE: 12pt; MARGIN-LEFT: 0cm;
MARGIN-RIGHT: 0cm; FONT-FAMILY: "Times New Roman"; mso-margin-top-alt:
auto; mso-margin-bottom-alt: auto } SPAN.EmailStyle17 { COLOR:
windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose }
DIV.Section1 { page: Section1 }
I have apache run as user wwwrun and as group www, postfix is run as user
postfix,
and here is the output of my /var/spool/MailScanner directory:
 
drwxr-xr-x   4 root    root     104 Sep  6  2004 .
drwxr-xr-x  13 root    root     360 Sep  6  2004 ..
drwx------   6 postfix postfix  144 Dec 11 21:44 incoming
drwxrwx---  63 postfix www     1512 Dec 11 04:15 quarantine
So for me this puts things in place:
 
chown -R postfix.www quarantine
chmod -R 0770 quarantine
 
So replace www by the group that your apache runs as, and you should be
fine.
 
Regards
John B

________________________________________________________________________________
Fra: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] På
vegne av ShaunM [MailShield]
Sendt: 11. desember 2005 23:03
Til: MAILSCANNER at JISCMAIL.AC.UK
Emne: quarantine error = permission denied

Heya guys,

 

I have a problem with mailwatch and my quarantine. No matter what I try I
can not access it. This is the output error I get when using mailwatch

 

Warning: is_file(): Stat failed for /var/spool/MailScanner/quarantine

(errno=13 - Permission denied) in
/usr/local/apache/htdocs/mailscanner/functions.php on line 925 No
quarantine directories found

 

Now as for permissions. The apache is run by nobody as its owner as shown
below. I have tried making quarantine owned by the following , nobody,
apache, mailnull anyone
of these permission settings don^Òt work either. This is what the
settings currently look like

 

root at filter1 [/etc]# ls /var/spool/MailScanner/quarantine/ -la

total 40

drwxrwx---   10 mailnull mail         4096 Dec 11 00:00 ./

drwxr-x---    5 mailnull mail         4096 Dec 11 11:04 .../

drwxrwx---    4 mailnull mail         4096 Dec  4 00:00 20051204/

drwxrwx---    4 mailnull mail         4096 Dec  5 00:00 20051205/

drwxrwx---    8 mailnull mail         4096 Dec  6 13:59 20051206/

drwxrwx---   13 mailnull mail         4096 Dec  7 11:14 20051207/

drwxrwx---    4 mailnull mail         4096 Dec  8 00:01 20051208/

drwxrwx---    9 mailnull mail         4096 Dec  9 12:56 20051209/

drwxrwx---    7 mailnull mail         4096 Dec 10 19:53 20051210/

drwxrwx---    6 mailnull mail         4096 Dec 11 00:13 20051211/

root at filter1 [/etc]#

 

This is the settings used in MailScanner.conf

 

Run As User = mailnull

Run As Group = mail

Quarantine User = mailnull

Quarantine Group = mail

 

I have tried all different variations of the above with even blank
entries in the quarantine user and quarantine group. I still can not get
this to work.

 

If anyone has any ideas that can help it would be appreciated.

 

Thanks

Shaun

 

 

 

 




-----------------------------------------------------------------------------
This message has been scanned for viruses and malicious content by
MailShield
http://www.mailshield.com.au

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/)
and the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/)
and the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!




More information about the MailScanner mailing list