dovecot 2.1 new imap folder permissions

Stefanos Gerangelos sgerag at gmail.com
Tue Oct 7 12:14:54 UTC 2014


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I hope this is the appropriate place to ask. I am migrating an old
mail (postfix/dovecot) server to a new one. Everything works much as
expected. I have a small obstacle though.

I use mbox format and the setup is pretty much simple.

Suppose a user's home directory is the following:
# ls -ld /home/foo
drwxr-xr-x 3 foo    users 4096 Oct  4 13:28 foo

and the respective /var/mail:
# ls -ld /var/mail/foo
- -rw------- 1 foo mail 0 Oct  4 23:45 /var/mail/foo

In the old server when the user tried to create a new test imap folder
(from an imap client), then the newly created file would be:
# ls -l /home/foo/
- -rw------- 1 foo users  0 Oct  2  02:08 test

This is the desired behavior.

In the new dovecot 2.1 server the following file permissions will apply:
# ls -l /home/foo/
- -rw-r--r-- 1 foo users  0 Oct  2  02:08 test

I finally noticed that if I chmod the /home/foo to 711, then the new
file will have the desired (600) permissions. So, I can make a umask
for the new users (login.defs), but that doesn't sound a pretty solution.

Do you have anything else to suggest? If you need any .conf file, let
me know.

Thanks in advance!


- --Stefanos
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQEcBAEBAgAGBQJUM9k6AAoJEDvFaozEhZub3rwIAKglt/6iAU61rCfWJf6yfMZY
HNp3rXz4WDbxhOT+eeuoHNN4QLQFTVmjYoqGpqJEazntdMKJqJ1At3osGtzUMYDe
iMuhsbcP+tpMAkeFcYB69cW+HvcmWsPafRJoCgziHapT2VxluWH0rfZIDGmvBI5e
kQ31ef9IHZjiBwyKf37e8QraU85HDXgF6AhcJ5I7PlDcJDW/jFGFKOUwDoKJ2BU9
JMUBWDALUZ9Uosd+8P8b11TcjjGdakKBPozvu8aAOKd9jz3G9bvatdHnZkD/OJFl
pIrnrQuaBA1bW4UP8nTTSyQVuvLKYpMLbN+NTym8SaEU3BwjirWbRDozHLugXio=
=lpy7
-----END PGP SIGNATURE-----


More information about the dovecot mailing list