Re: [Exim] Exim - /var/mail directory

Top Pagina
Delete this message
Reply to this message
Auteur: Vadim Vygonets
Datum:  
Aan: exim-users
Onderwerp: Re: [Exim] Exim - /var/mail directory
Quoth Sheldon Hearn on Thu, Jan 31, 2002:
> On Thu, 31 Jan 2002 10:12:09 +0100, SWS wrote:
> > When I send a message to test user, Exim creates in /var/mail
> > user file:
> >
> > xxx:~$ ls -l /var/mail | grep test
> > -rw-------   1 test    emp         1000 Jan 31 08:22 test
> >  --                    ---
> >                         ^
> >                         |
> >                        where emp is primary group of test user

> >
> > and privileges 600 for it.
>
> Your question is answered in the FAQ, in answer to the question:
>
>     Why do I get the error "Permission denied: creating lock file
>     hitching post" when Exim tries to do a local delivery?


Except the two possibilities mentioned there, there's the third
one, used by default on OpenBSD (and, I think, other BSDs as
well), where the directory mode and owners are:

1 drwxr-xr-x 2 root wheel 512 Jan 31 05:00 /var/mail

And the files are 0600, owned (and "grouped") by their respective
users:

  3 -rw-------  1 vadik  users    2720 Jan 31 18:16 vadik


Here, the solution is to set mode = 0600 and no_use_lockfile in
the localuser router (err, I'm using 3.953 here).

This example is taken straight from my home machine, Exim
installed an hour ago.

Vadik.

--
Do not meddle in the affairs of troff, for it is subtle and quick
to anger.