OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: /var/mail group setting

From: Wietse Venema (wietseporcupine.org)
Date: Thu Apr 17 2003 - 21:57:49 CDT


J.D. Bronson:
> I noticed that postfix will create mail files with <user>.<usergroup>
> permissions....
>
> Under OpenBSD:
> I have /var/mail set to root:mail and it is mode 755.
>
> is there any way to tell postfix that when it deposits email into /var/mail
> that is uses group 'mail' ?

There is no officially documented way. However, a group writable
directory (i.e. not world writable) would do the trick. Since
this is not officially documented, it can change any time.

> It seems I can accomplish this by setting /var/mail sgid to mail, but
> wanted to know if it can be addressed via postfix instead.
>
> I would prefer any users email in /var/mail to be gid 'mail'.

What problem are you trying to solve?

        Wietse