[Dovecot] New mailbox & autocreate
Hi,
First of all BIG THANKS for great piece of software.
I have a small problem with autocreate. My mails are stored in: /var/mail Ex. /var/mail/test@test.pl/Maildir
Account information comes from DB. So when new account appears in DB full path including home dir is created. But there is one small problem: Group always is "wheel". Autocreating ignores gid from DB and uses the group of the parent directory - in this case /var/mail. But when I create home dir manualy (setting right group) group of autocreated Maildir is OK. Is it possible to configure dovecot to set group from DB.
Regards, Bambero
On Fri, 2010-06-18 at 22:04 +0200, Bambero wrote:
Group always is "wheel". Autocreating ignores gid from DB and uses the group of the parent directory - in this case /var/mail.
Does /var/mail directory have setgid bit enabled? See if chmod g-s /var/mail helps.
Also you didn't say what Dovecot version you're using.
B> Group always is "wheel". Autocreating ignores gid from DB and uses the B> group of the parent directory - in this case /var/mail.
TSS> Does /var/mail directory have setgid bit enabled? See if chmod TSS> g-s /var/mail helps. For the record: BSD always inherits the group from the parent directory, even without its set-group-id bit being set.
On Sat, 2010-06-19 at 17:05 +0200, Edgar Fuß wrote:
For the record: BSD always inherits the group from the parent directory, even without its set-group-id bit being set.
Oh. I thought it was because of +t bit. Wonder if I then really should go add code that chown()s the group to user's primary group, unless parent directory has +s bit enabled. So that it would work like in Linux.. I kind of hate the idea of doing something like.
participants (3)
-
Bambero
-
Edgar Fuß
-
Timo Sirainen