Re: #4.2.1 access denied

2001-05-18 Thread Markus Stumpf

On Fri, May 18, 2001 at 08:54:46PM +0200, Tom Beer wrote:
> it's driving me nuts. I don't know a not tested
> permission setting. Why do I get an access denied error,
> every time a message bounces, because there's no mbox?

The problem is, if the delivery is done via ~alias, it's done with
the permissions of the user alias, which is not allowed to write
/home/tom/Mailbox

Whether it's done via ~alias/.qmail-tom depends on entries in /etc/passwd
and/or /var/qmail/users/assign.

However the line

@40003b056f360ee85a54 starting delivery 1357: msg 224842 to local 
[EMAIL PROTECTED]

indicates that the problem is not with the user tom, but delivery to
user "root", which is handled by ~alias/.qmail-root (under permissions
of user "alias").

Replace in that file (I assume!!)
/home/tom/Mailbox 
with
&tom
and it will probably work.

\Maex

-- 
SpaceNet AG| Joseph-Dollinger-Bogen 14 | Fon: +49 (89) 32356-0
Research & Development |   D-80807 Muenchen| Fax: +49 (89) 32356-299
Stress is when you wake up screaming and you realize you haven't fallen
asleep yet.



Re: #4.2.1 access denied

2001-05-18 Thread Charles Cazabon

Tom Beer <[EMAIL PROTECTED]> wrote:
> 
> it's driving me nuts. I don't know a not tested
> permission setting. Why do I get an access denied error,
> every time a message bounces, because there's no mbox?

Because qmail runs with the permissions of the user it is delivering to.

> ls -la  /var/qmail/alias
[...]
> -rw-r--r--   1 root qmail  18 May 16 19:06 .qmail-tom
> 
> ls -la /home/tom
[...]
> drwxr--r--   2 tom  users4096 May 18 20:06 .

You implied that ~alias/.qmail-tom contains /home/tom/Mailbox .  Therefore,
if alias is handling this address, user "alias" will be trying to write to
~tom/Mailbox, which won't work.

However, user "tom" should override alias, unless you're using virtualdomains
to do this or something.  Post the output of `qmail-showctl` (unedited) and we
might be able to help you further.  It might be as simple as changing your
~alias/.qmail-tom file to contain a forwarding directive.

Charles
-- 
---
Charles Cazabon<[EMAIL PROTECTED]>
GPL'ed software available at:  http://www.qcc.sk.ca/~charlesc/software/
Any opinions expressed are just that -- my opinions.
---



#4.2.1 access denied

2001-05-18 Thread Tom Beer

Hi,

it's driving me nuts. I don't know a not tested
permission setting. Why do I get an access denied error,
every time a message bounces, because there's no mbox?

ls -la /var/spool/mail

total 8
drwxrwxrwt   2 root root 4096 May 16 20:44 .
drwxr-xr-x  13 root root 4096 Aug 23  2000 ..
-rw-r--r--   1 administ users   0 Nov  1  2000 administrator
-rw-r--r--   1 laptop   users   0 Feb 15 13:05 laptop
-rw-r--r--   1 nina users   0 Aug  6  2000 nina
lrwxrwxrwx   1 tom  users  17 May 15 21:54 tom ->
/home/tom/Mailbox [also content of .qmail
files in /var/qmail alias]

ls -la  /var/qmail/alias

total 24
drwxr-xr-x   2 qmaill   qmail4096 May 18 20:16 .
drwxr-xr-x  10 root qmail4096 May 15 19:26 ..
-rw-r--r--   1 root root   19 May 18 20:15 .qmail-mailer-daemon
-rw-r--r--   1 root qmail  19 May 18 20:15 .qmail-postmaster
-rw-r--r--   1 root qmail  19 May 18 20:14 .qmail-root
-rw-r--r--   1 root qmail  18 May 16 19:06 .qmail-tom

ls -la /home/tom

total 240
drwxr--r--   2 tom  users4096 May 18 20:06 .
drwxr-xr-x   8 root users4096 May 16 20:45 ..
-rw-r--r--   1 tom  users   13800 Mar 28 22:25 .pinerc
-rw-r--r--   1 root root13802 Mar 28 22:21 .pinerc~
-rw-r--r--   1 tom  users1560 May 18 20:09 Mailbox

/var/log/qmail/current

@40003b056f360d1a7824 info msg 224726: bytes 205 from
<[EMAIL PROTECTED]> qp 19823 uid 0
@40003b056f360d51243c starting delivery 1356: msg 224726 to local
[EMAIL PROTECTED]
@40003b056f360d515ed4 status: local 1/10 remote 0/20
@40003b056f360e098f2c delivery 1356: failure:
Sorry,_no_mailbox_here_by_that_name._(#5.1.1)/[that's ok]
@40003b056f360e09d964 status: local 0/10 remote 0/20
@40003b056f360e81a55c bounce msg 224726 qp 19826
@40003b056f360e841a44 end msg 224726
@40003b056f360e8ca9ac new msg 224842
@40003b056f360e901894 info msg 224842: bytes 740 from <> qp 19826 uid
1010
@40003b056f360ee85a54 starting delivery 1357: msg 224842 to local
[EMAIL PROTECTED]
@40003b056f360eea3eb4 status: local 1/10 remote 0/20
@40003b056f360f96b70c delivery 1357: deferral:
Unable_to_open_/home/tom/Mailbox:_access_denied._(#4.2.1)/ [that's not]
@40003b056f360f98e98c status: local 0/10 remote 0/20


Thanks Tom