Re: Local delivery problems on FreeBSD

Pàgina inicial
Delete this message
Reply to this message
Autor: Martin Cooper
Data:  
A: Philip Crewdson
CC: exim-users
Assumpte: Re: Local delivery problems on FreeBSD
> Hi anyone,
>
> I'm running exim 1.58 on FreeBSD (2.1.5 release), and it's working fine,
> except it won't deliver to users on the machine it's running on. The
> mainlog records this entry for local-user-to-local-user attempts:
>
> 1996-11-27 19:57:08 0vSq6W-0007mL-00 <= philip@??? U=philip
> P=local S=463
> 1996-11-27 19:57:08 0vSq6W-0007mL-00 == paul@???
> T=local_delivery defer (13): Permission denied: creating lock file hitching
> post
>
> and this for root-to-local-user:
>
> 1996-11-27 20:00:08 0vSq9Q-0007mZ-00 <= root@??? U=root P=local S=460
> 1996-11-27 20:00:08 0vSq9Q-0007mZ-00 == paul@???
> T=local_delivery defer (-1): Retry time not yet reached
>
> This happens whether the program is compiled to run as exim or uid unset.
>
> Any clues?


I dealt with this by creating a mail group (distinct from the exim
group), and setting the directory permissions and ownership on /var/mail
as follows:

drwxrwxr-x 2 exim mail 512 Nov 28 02:01 /var/mail

and then making local deliveries happen as the owner of the mailbox,
and the group 'mail', which then allows only the 'exim' user and the
'mail' group to create/delete/rename spool files in /var/mail, but
neither to read them, since the permissions are rw------- with ownership
being owner of mailbox:group 'mail'.

Martin
--
Martin Cooper
Work <mjc@???> | Personal <mjc@???>