I’ve been asked allot recently what the correct permissions should be for the mail store on Apple’s Snow Leopard (10.6) dovecot mail server, so here’s a list as they appear on the servers I work on:
File / Directory Name | Owner | Group | Permissions (chmod) | |
|---|---|---|---|---|
/var/spool | root | wheel | 755 | (drwxr-xr-x) |
/var/spool/imap | root | wheel | 755 | (drwxr-xr-x) |
/var/spool/imap/dovecot | root | wheel | 755 | (drwxr-xr-x) |
/var/spool/imap/dovecot/mail | _dovecot | 775 | (drwxrwxr-x) | |
Users maildir (as users GUID) | users shortname | 700 | (drwx------) | |
cur | users shortname | 700 | (drwx------) | |
dovecot-keywords | users shortname | 644 | (-rw-r--r--) | |
dovecot-uidlist | users shortname | 600 | (-rw-------) | |
dovecot-uidvalidity | users shortname | 600 | (-rw-------) | |
dovecot.index | users shortname | 600 | (-rw-------) | |
maildirsize | users shortname | 600 | (-rw-------) | |
new | users shortname | 700 | (drwx------) | |
subscriptions | users shortname | 600 | (-rw-------) | |
tmp | users shortname | 700 | (drwx------) |