[Exim] Re: exim/majordomo permission denied problem

Etusivu
Poista viesti
Vastaa
Lähettäjä: Marc Mims
Päiväys:  
Vastaanottaja: exim-users, majordomo-users
Aihe: [Exim] Re: exim/majordomo permission denied problem
* Mark Jones <msibleyj@???>:
> Try mail majordom


Do you mean try sending mail to majordom? If so, that fails just
like sending mail to anyone else.

Or do you mean change owner.group to mail.majordom, which is very
nearly what I've done, and it seems to have solved the problem.

Actually, I changed the owner.group to majordom.mail. Exim runs
as mail.mail.

It would appear that even though an alias director is configured
to run as user majordom, group majordom, with initgroups
specified, it needs to be able to read the alias file as
mail.mail. Making mail a member of group majordom does not help.

Unless I'm putting initgroups = true in the wrong place??

So... unless there is a *problem* with assigning mail (Exim) and
majordom the same primary group (mail, in my case), then I guess
I've found an answer.

    -Marc

>
> Mark Jones
>
> >From: Marc Mims <marc@???>
> >To: exim-users@???, majordomo-users@???
> >Subject: exim/majordomo permission denied problem
> >Date: Thu, 10 May 2001 10:22:51 -0700
> >
> >I am experiencing a problem that I have seen discussed in the
> >Exim and Majordomo list archives, but I was unable to find an
> >solution posted there. In fact, there is an entry in the
> >Majordomo FAQ for this issue, but as you'll see below, I've
> >followed the advice in the FAQ (I believe...), no no avail.
> >
> >After installing Majordomo and providing some initial setup, I am
> >unable to send *any* mail. Any attempt to do so results in a
> >permission denied error as the following example shows:
> >
> >   $ echo 'test' | mail root
> >   2001-05-10 10:03:29 14xtqb-0000jT-00 majordomo_aliases director:
> >     failed to open /usr/local/majordomo/lists/lists.aliases
> >     for linear search: Permission denied (euid=8 egid=8)

> >
> >User `mail' has uid 8; group `mail' has gid 8.
> >
> >FWIW, `mail' is a member of group `majordom'; `majordom' is a
> >member of group `mail'.
> >
> >Mail does have read access to the file, as demonstrated by the
> >following:
> >
> >   # su mail
> >   $ cd /tmp; cat /usr/local/majordomo/lists/lists.aliases
> >   majordom:       majordomo
> >   majordomo:      "|/usr/local/majordomo/wrapper majordomo"

> >
> > owner-majordomo: postmaster
> > majordomo-owner: postmaster
> >
> >File permissions on the file and each superior directory follow:
> >
> >   # ls -l /usr/local/majordomo/lists/lists.aliases
> >   -rw-rw----    1 majordom majordom      600 May  9 15:42

> >
> >   # ls -ld /usr/local/majordomo/lists \
> >   > /usr/local/majordomo /usr/local /usr
> >   drwxr-xr-x   14 root     root         4096 May  3 07:44 /usr
> >   drwxr-xr-x   14 root     staff        4096 May  8 19:27 /usr/local
> >   drwxrwxr-x    5 majordom majordom     4096 May  9 11:18 
> >/usr/local/majordomo
> >   drwxrwxr-x    2 majordom majordom     4096 May  9 15:42 
> >/usr/local/majordomo/lists

> >
> >And, finally, here are the additions I made to the exim.conf
> >file:
> >
> > trusted_users = mail:majordom
> >
> >   majordomo_aliases:
> >     driver = aliasfile
> >     file = /usr/local/majordomo/lists/lists.aliases
> >     user = majordom
> >     group = majordom
> >     search_type = lsearch

> >
> >I could sure use a solution to this problem. :-) Thanks in
> >advance.
> >
> >    -Marc

> >