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 */
On 19.09.2017 05:28, Nelson Crosby wrote:> 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 ] mboxthis is owned by root, and it's complaining about /var/logmail/**mbox**/ncrosby and dovecot cannot create this because mbox is only writable by root Aki
On 19 Sep 2017, at 5.28, Nelson Crosby <nc at sourcecomb.com> wrote:> > 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.That usually means you've SELinux enabled and it prevents the access.
Good day. On 20 September 2017 at 12:07, Timo Sirainen <tss at iki.fi> wrote:> > That usually means you've SELinux enabled and it prevents the access. >That appears to have been the issue. I guess Fedora's got a few more complex defaults than I thought. Thank you greatly for your assistance; // Nelson -- // Nelson Crosby /* nc at sourcecomb.com */