Re: [Exim] OpenBSD && exim && user

Pàgina inicial
Delete this message
Reply to this message
Autor: Jim Knoble
Data:  
A: exim-users
Assumpte: Re: [Exim] OpenBSD && exim && user
Circa 2002-11-13 15:05:00 -0700 dixit Colin Harford:

: Okay, so I am running into a few little problems here with OpenBSD and
: Exim.
:
: By default in OpenBSD /var/mail is set as:
: drwxr-xr-x   2 root  wheel         512 Nov 13 14:45 mail
: and gets reset by default to this everytime that the machine is rebuilt
: (can be changed though)...


[...]

: Does anyone have any suggestions on how to fix this so that I can have
: exim deliver mail  so that:
:     exim is not running as a priviliged user of any form
:     and without having to set /var/mail to 777


Recommend modifying /etc/mtree/special (and /usr/src/etc/mtree/special)
to reflect the proper permissions and ownership for /var/mail/ rather
than trying to work around the OpenBSD default. For example:

- ----------------
Index: special
===================================================================
RCS file: /cvs/src/etc/mtree/special,v
retrieving revision 1.40
diff -u -r1.40 special
- --- special    2002/02/13 04:53:54    1.40
+++ special    2002/11/13 23:30:47
@@ -154,7 +154,7 @@
 wtmp        type=file mode=0644 uname=root gname=wheel
 lastlog        type=file mode=0644 uname=root gname=wheel
 ..    #var/log
- -mail        type=dir mode=0755 uname=root gname=wheel ignore
+mail        type=dir mode=0775 uname=root gname=mail ignore
 ..    #var/mail
 preserve    type=dir mode=0755 uname=root gname=wheel ignore
 ..    #var/preserve
- ----------------


If you're using /usr/ports/mail/exim/ instead of a self-built package,
then you'll also want to make certain that SPOOL_MODE is set to 0640 in
/usr/ports/mail/exim/files/Makefile.

- --
jim knoble | jmknoble@??? | http://www.pobox.com/~jmknoble/
(GnuPG fingerprint: 31C4:8AAC:F24E:A70C:4000::BBF4:289F:EAA8:1381:1491)
"I am non-refutable." --Enik the Altrusian