Inexplicable missing permissions issue
Nelson Crosby
nc at sourcecomb.com
Tue Sep 19 05:28:09 EEST 2017
Greetings all.
I've been having great difficulty getting Dovecot working. I'm getting
stuck with using mbox directories outside of /home. Dovecot keeps giving
me this message:
imap(ncrosby): Namespace '': stat(/var/logmail/mbox/ncrosby) failed: Permis
sion denied (euid=1001(ncrosby) egid=1001(ncrosby) missing +w perm: /var/lo
gmail/mbox/ncrosby stat(/var/logmail/mbox/ncrosby) failed: Permission denie
d, dir owned by 0:0 mode=0755) in=0 out=340
I've tried letting Dovecot create this directory, I've tried creating this
directory manually and giving it any permission I can think of, I've tried
playing about with the permissions throughout the entire /var/logmail tree,
but to no avail.
Below is my setup. I appreciate any input.
Here's `tree -apug /var/logmail`:
/var/logmail
├── [drwx------ root root ] lost+found
├── [drwxr-xr-x root root ] mbox
└── [drwxrwxr-x root mail ] spool
├── [-rw-rw---- fedora mail ] fedora
└── [-rw-rw---- ncrosby mail ] ncrosby
3 directories, 2 files
And permissions for `/var/logmail` itself:
drwxr-xr-x. 5 root root 4096 Sep 19 01:52 .
And now `doveconf -n`:
# 2.2.31 (65cde28): /etc/dovecot/dovecot.conf
# OS: Linux 4.11.8-300.fc26.x86_64 x86_64 Fedora release 26
(Twenty Six) ext4
disable_plaintext_auth = no
mail_location = mbox:/var/logmail/mbox/%n:INBOX=/var/logmail/spool/%n
mbox_write_locks = fcntl
namespace inbox {
inbox = yes
location =
mailbox Drafts {
special_use = \Drafts
}
mailbox Junk {
special_use = \Junk
}
mailbox Sent {
special_use = \Sent
}
mailbox "Sent Messages" {
special_use = \Sent
}
mailbox Trash {
special_use = \Trash
}
prefix =
}
passdb {
args = dovecot
driver = pam
}
service auth {
unix_listener /var/spool/postfix/private/auth {
group = postfix
mode = 0666
user = postfix
}
}
ssl = no
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_cipher_list = PROFILE=SYSTEM
ssl_key = # hidden, use -P to show it
userdb {
driver = passwd
}
--
// Nelson Crosby
/* nc at sourcecomb.com */
More information about the dovecot
mailing list