Postfix/Dovecot permissions for new mailboxes
Hello,
the wiki page describe that permission should copied from root mail directory https://wiki2.dovecot.org/SharedMailboxes/Permissions
The permissions for the root mail directory are set to 2770: drwxrws--- 36 root mail 4096 Apr 15 02:30 /var/spool/mail/
But newly created mailboxes get following permissions: drwx--S--- 5 newuser mail 4096 Apr 23 19:31 /var/spool/mail/newuser/
In /etc/dovecot/conf.d/10-mail.conf follow options are set: mail_gid = mail mail_privileged_group = mail mail_access_groups = mail
I'm missing something to get right group permissions for new mailboxes?
On 09.05.2018 12:52, telsch wrote:
Hello,
the wiki page describe that permission should copied from root mail directory https://wiki2.dovecot.org/SharedMailboxes/Permissions
The permissions for the root mail directory are set to 2770: drwxrws--- 36 root mail 4096 Apr 15 02:30 /var/spool/mail/
But newly created mailboxes get following permissions: drwx--S--- 5 newuser mail 4096 Apr 23 19:31 /var/spool/mail/newuser/
In /etc/dovecot/conf.d/10-mail.conf follow options are set: mail_gid = mail mail_privileged_group = mail mail_access_groups = mail
I'm missing something to get right group permissions for new mailboxes?
What permissions were you expecting? Also, which version of dovecot are you running?
Aki
I would expect same permissions as for root mail directory 02770: drwxrws--- 5 newuser mail 4096 Apr 23 19:31 /var/spool/mail/newuser/
Using Dovecot 2.2.34
On 14.05.2018 08:37, Aki Tuomi wrote:
On 09.05.2018 12:52, telsch wrote:
Hello,
the wiki page describe that permission should copied from root mail directory https://wiki2.dovecot.org/SharedMailboxes/Permissions
The permissions for the root mail directory are set to 2770: drwxrws--- 36 root mail 4096 Apr 15 02:30 /var/spool/mail/
But newly created mailboxes get following permissions: drwx--S--- 5 newuser mail 4096 Apr 23 19:31 /var/spool/mail/newuser/
In /etc/dovecot/conf.d/10-mail.conf follow options are set: mail_gid = mail mail_privileged_group = mail mail_access_groups = mail
I'm missing something to get right group permissions for new mailboxes?
What permissions were you expecting? Also, which version of dovecot are you running?
Aki
Do you have
mail_location=maildir:~/mail
or
mail_location = maildir:/path/to/whatever/%u
I tested with latest 2.2 that if I use /path/to, I get correct permissions.
Aki
On 15.05.2018 12:43, telsch wrote:
I would expect same permissions as for root mail directory 02770: drwxrws--- 5 newuser mail 4096 Apr 23 19:31 /var/spool/mail/newuser/
Using Dovecot 2.2.34
On 14.05.2018 08:37, Aki Tuomi wrote:
On 09.05.2018 12:52, telsch wrote:
Hello,
the wiki page describe that permission should copied from root mail directory https://wiki2.dovecot.org/SharedMailboxes/Permissions
The permissions for the root mail directory are set to 2770: drwxrws--- 36 root mail 4096 Apr 15 02:30 /var/spool/mail/
But newly created mailboxes get following permissions: drwx--S--- 5 newuser mail 4096 Apr 23 19:31 /var/spool/mail/newuser/
In /etc/dovecot/conf.d/10-mail.conf follow options are set: mail_gid = mail mail_privileged_group = mail mail_access_groups = mail
I'm missing something to get right group permissions for new mailboxes?
What permissions were you expecting? Also, which version of dovecot are you running?
Aki
I use mdbox not maildir:
mail_location = mdbox:/var/spool/mail/%u
On 15.05.2018 11:53, Aki Tuomi wrote:
Do you have
mail_location=maildir:~/mail
or
mail_location = maildir:/path/to/whatever/%u
I tested with latest 2.2 that if I use /path/to, I get correct permissions.
Aki
On 15.05.2018 12:43, telsch wrote:
I would expect same permissions as for root mail directory 02770: drwxrws--- 5 newuser mail 4096 Apr 23 19:31 /var/spool/mail/newuser/
Using Dovecot 2.2.34
On 14.05.2018 08:37, Aki Tuomi wrote:
On 09.05.2018 12:52, telsch wrote:
Hello,
the wiki page describe that permission should copied from root mail directory https://wiki2.dovecot.org/SharedMailboxes/Permissions
The permissions for the root mail directory are set to 2770: drwxrws--- 36 root mail 4096 Apr 15 02:30 /var/spool/mail/
But newly created mailboxes get following permissions: drwx--S--- 5 newuser mail 4096 Apr 23 19:31 /var/spool/mail/newuser/
In /etc/dovecot/conf.d/10-mail.conf follow options are set: mail_gid = mail mail_privileged_group = mail mail_access_groups = mail
I'm missing something to get right group permissions for new mailboxes?
What permissions were you expecting? Also, which version of dovecot are you running?
Aki
I have to correct myself. I tested with sdbox now too, and it seems that using
mail_location=sdbox:~/Mail
produces the expected behaviour. mdbox uses same code as sdbox for this, so it should work fine.
Aki
On 15.05.2018 13:01, telsch wrote:
I use mdbox not maildir:
mail_location = mdbox:/var/spool/mail/%u
On 15.05.2018 11:53, Aki Tuomi wrote:
Do you have
mail_location=maildir:~/mail
or
mail_location = maildir:/path/to/whatever/%u
I tested with latest 2.2 that if I use /path/to, I get correct permissions.
Aki
On 15.05.2018 12:43, telsch wrote:
I would expect same permissions as for root mail directory 02770: drwxrws--- 5 newuser mail 4096 Apr 23 19:31 /var/spool/mail/newuser/
Using Dovecot 2.2.34
On 14.05.2018 08:37, Aki Tuomi wrote:
On 09.05.2018 12:52, telsch wrote:
Hello,
the wiki page describe that permission should copied from root mail directory https://wiki2.dovecot.org/SharedMailboxes/Permissions
The permissions for the root mail directory are set to 2770: drwxrws--- 36 root mail 4096 Apr 15 02:30 /var/spool/mail/
But newly created mailboxes get following permissions: drwx--S--- 5 newuser mail 4096 Apr 23 19:31 /var/spool/mail/newuser/
In /etc/dovecot/conf.d/10-mail.conf follow options are set: mail_gid = mail mail_privileged_group = mail mail_access_groups = mail
I'm missing something to get right group permissions for new mailboxes?
What permissions were you expecting? Also, which version of dovecot are you running?
Aki
With this settings I don't get the expectet result, still get wrong permissions on new mailboxes. Aki did you also try with %u ?
In /etc/dovecot/conf.d/10-mail.conf follow options are set: mail_gid = mail mail_privileged_group = mail mail_access_groups = mail mail_location = mdbox:/var/spool/mail/%u
On 15.05.2018 13:06, Aki Tuomi wrote:
I have to correct myself. I tested with sdbox now too, and it seems that using
mail_location=sdbox:~/Mail
produces the expected behaviour. mdbox uses same code as sdbox for this, so it should work fine.
Aki
On 15.05.2018 13:01, telsch wrote:
I use mdbox not maildir:
mail_location = mdbox:/var/spool/mail/%u
On 15.05.2018 11:53, Aki Tuomi wrote:
Do you have
mail_location=maildir:~/mail
or
mail_location = maildir:/path/to/whatever/%u
I tested with latest 2.2 that if I use /path/to, I get correct permissions.
Aki
On 15.05.2018 12:43, telsch wrote:
I would expect same permissions as for root mail directory 02770: drwxrws--- 5 newuser mail 4096 Apr 23 19:31 /var/spool/mail/newuser/
Using Dovecot 2.2.34
On 14.05.2018 08:37, Aki Tuomi wrote:
On 09.05.2018 12:52, telsch wrote:
Hello,
the wiki page describe that permission should copied from root mail directory https://wiki2.dovecot.org/SharedMailboxes/Permissions
The permissions for the root mail directory are set to 2770: drwxrws--- 36 root mail 4096 Apr 15 02:30 /var/spool/mail/
But newly created mailboxes get following permissions: drwx--S--- 5 newuser mail 4096 Apr 23 19:31 /var/spool/mail/newuser/
In /etc/dovecot/conf.d/10-mail.conf follow options are set: mail_gid = mail mail_privileged_group = mail mail_access_groups = mail
I'm missing something to get right group permissions for new mailboxes?
What permissions were you expecting? Also, which version of dovecot are you running?
Aki
Well, that's not what I asked you to try...
try
mail_home=/var/spool/mail/%u mail_location=mdbox:~/
Aki
On 15 May 2018 at 20:03 telsch <telsch@gmx.de> wrote:
With this settings I don't get the expectet result, still get wrong permissions on new mailboxes. Aki did you also try with %u ?
In /etc/dovecot/conf.d/10-mail.conf follow options are set: mail_gid = mail mail_privileged_group = mail mail_access_groups = mail mail_location = mdbox:/var/spool/mail/%u
On 15.05.2018 13:06, Aki Tuomi wrote:
I have to correct myself. I tested with sdbox now too, and it seems that using
mail_location=sdbox:~/Mail
produces the expected behaviour. mdbox uses same code as sdbox for this, so it should work fine.
Aki
On 15.05.2018 13:01, telsch wrote:
I use mdbox not maildir:
mail_location = mdbox:/var/spool/mail/%u
On 15.05.2018 11:53, Aki Tuomi wrote:
Do you have
mail_location=maildir:~/mail
or
mail_location = maildir:/path/to/whatever/%u
I tested with latest 2.2 that if I use /path/to, I get correct permissions.
Aki
On 15.05.2018 12:43, telsch wrote:
I would expect same permissions as for root mail directory 02770: drwxrws--- 5 newuser mail 4096 Apr 23 19:31 /var/spool/mail/newuser/
Using Dovecot 2.2.34
On 14.05.2018 08:37, Aki Tuomi wrote:
On 09.05.2018 12:52, telsch wrote: > Hello, > > the wiki page describe that permission should copied from root mail > directory > https://wiki2.dovecot.org/SharedMailboxes/Permissions > > The permissions for the root mail directory are set to 2770: > drwxrws--- 36 root mail 4096 Apr 15 02:30 /var/spool/mail/ > > But newly created mailboxes get following permissions: > drwx--S--- 5 newuser mail 4096 Apr 23 19:31 > /var/spool/mail/newuser/ > > In /etc/dovecot/conf.d/10-mail.conf follow options are set: > mail_gid = mail > mail_privileged_group = mail > mail_access_groups = mail > > I'm missing something to get right group permissions for new > mailboxes?
What permissions were you expecting? Also, which version of dovecot are you running?
Aki
Yes, this settings work as i expected, but i didn't found documentation for mail_home=
Thanks
On 15.05.2018 20:10, Aki Tuomi wrote:
Well, that's not what I asked you to try...
try
mail_home=/var/spool/mail/%u mail_location=mdbox:~/
Aki
On 15 May 2018 at 20:03 telsch <telsch@gmx.de> wrote:
With this settings I don't get the expectet result, still get wrong permissions on new mailboxes. Aki did you also try with %u ?
In /etc/dovecot/conf.d/10-mail.conf follow options are set: mail_gid = mail mail_privileged_group = mail mail_access_groups = mail mail_location = mdbox:/var/spool/mail/%u
On 15.05.2018 13:06, Aki Tuomi wrote:
I have to correct myself. I tested with sdbox now too, and it seems that using
mail_location=sdbox:~/Mail
produces the expected behaviour. mdbox uses same code as sdbox for this, so it should work fine.
Aki
On 15.05.2018 13:01, telsch wrote:
I use mdbox not maildir:
mail_location = mdbox:/var/spool/mail/%u
On 15.05.2018 11:53, Aki Tuomi wrote:
Do you have
mail_location=maildir:~/mail
or
mail_location = maildir:/path/to/whatever/%u
I tested with latest 2.2 that if I use /path/to, I get correct permissions.
Aki
On 15.05.2018 12:43, telsch wrote:
I would expect same permissions as for root mail directory 02770: drwxrws--- 5 newuser mail 4096 Apr 23 19:31 /var/spool/mail/newuser/
Using Dovecot 2.2.34
On 14.05.2018 08:37, Aki Tuomi wrote: > > > On 09.05.2018 12:52, telsch wrote: >> Hello, >> >> the wiki page describe that permission should copied from root mail >> directory >> https://wiki2.dovecot.org/SharedMailboxes/Permissions >> >> The permissions for the root mail directory are set to 2770: >> drwxrws--- 36 root mail 4096 Apr 15 02:30 /var/spool/mail/ >> >> But newly created mailboxes get following permissions: >> drwx--S--- 5 newuser mail 4096 Apr 23 19:31 >> /var/spool/mail/newuser/ >> >> In /etc/dovecot/conf.d/10-mail.conf follow options are set: >> mail_gid = mail >> mail_privileged_group = mail >> mail_access_groups = mail >> >> I'm missing something to get right group permissions for new >> mailboxes? > > What permissions were you expecting? Also, which version of dovecot > are > you running? > > Aki >
https://wiki.dovecot.org/VirtualUsers/Home
On 16.05.2018 13:42, telsch wrote:
Yes, this settings work as i expected, but i didn't found documentation for mail_home=
Thanks
On 15.05.2018 20:10, Aki Tuomi wrote:
Well, that's not what I asked you to try...
try
mail_home=/var/spool/mail/%u mail_location=mdbox:~/
Aki
On 15 May 2018 at 20:03 telsch <telsch@gmx.de> wrote:
With this settings I don't get the expectet result, still get wrong permissions on new mailboxes. Aki did you also try with %u ?
> In /etc/dovecot/conf.d/10-mail.conf follow options are set: > mail_gid = mail > mail_privileged_group = mail > mail_access_groups = mail > mail_location = mdbox:/var/spool/mail/%u
On 15.05.2018 13:06, Aki Tuomi wrote:
I have to correct myself. I tested with sdbox now too, and it seems that using
mail_location=sdbox:~/Mail
produces the expected behaviour. mdbox uses same code as sdbox for this, so it should work fine.
Aki
On 15.05.2018 13:01, telsch wrote:
I use mdbox not maildir:
mail_location = mdbox:/var/spool/mail/%u
On 15.05.2018 11:53, Aki Tuomi wrote:
Do you have
mail_location=maildir:~/mail
or
mail_location = maildir:/path/to/whatever/%u
I tested with latest 2.2 that if I use /path/to, I get correct permissions.
Aki
On 15.05.2018 12:43, telsch wrote: > I would expect same permissions as for root mail directory 02770: > drwxrws--- 5 newuser mail 4096 Apr 23 19:31 > /var/spool/mail/newuser/ > > Using Dovecot 2.2.34 > > On 14.05.2018 08:37, Aki Tuomi wrote: >> >> >> On 09.05.2018 12:52, telsch wrote: >>> Hello, >>> >>> the wiki page describe that permission should copied from root >>> mail >>> directory >>> https://wiki2.dovecot.org/SharedMailboxes/Permissions >>> >>> The permissions for the root mail directory are set to 2770: >>> drwxrws--- 36 root mail 4096 Apr 15 02:30 >>> /var/spool/mail/ >>> >>> But newly created mailboxes get following permissions: >>> drwx--S--- 5 newuser mail 4096 Apr 23 19:31 >>> /var/spool/mail/newuser/ >>> >>> In /etc/dovecot/conf.d/10-mail.conf follow options are set: >>> mail_gid = mail >>> mail_privileged_group = mail >>> mail_access_groups = mail >>> >>> I'm missing something to get right group permissions for new >>> mailboxes? >> >> What permissions were you expecting? Also, which version of >> dovecot >> are >> you running? >> >> Aki >>
participants (2)
-
Aki Tuomi
-
telsch