Query: SELECT "INBOX" permission denied

Don Levey dovecot at the-leveys.us
Wed Nov 12 03:19:08 UTC 2014


Yesterday I was forced to migrate servers due to a hardware failure.  I
have been able to bring up my mail server, and set up Squirrelmail and
Dovecot.  I am able to access (via Squirrelmail) all users' mail except
one - which happens to be my wife's, so it would be really helpful if I
could get that working too.  I am able to log in, but see the following
message in the main pane:

   ERROR: Could not complete request.
   Query: SELECT "INBOX"
   Reason Given: [NOPERM] Permission denied

I have see similar errors in my searches, but they all relate to
*creating* files (inbox, sent, etc).  The files do already exist here,
they used to work in the same directory structure on the old server
configuration, and I can see no relative difference between this user's
files/permissions and working users' files/permissions.

Suggestions are welcome; thanks in advance,
 -Don

Here are the vitals:

Version: 2.2.10
OS: CentOS 7

# 2.2.10: /etc/dovecot/dovecot.conf
# OS: Linux 3.10.0-123.9.3.el7.x86_64 x86_64 CentOS Linux release 7.0.1406
(Core)  ext3
auth_mechanisms = plain login
disable_plaintext_auth = no
log_path = /var/log/dovecot.log
mail_location = mbox:/home/%u/~mail:INBOX=/var/spool/mail/%u
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 {
  driver = pam
}
ssl = required
ssl_cert = </etc/pki/dovecot/certs/dovecot.pem
ssl_key = </etc/pki/dovecot/private/dovecot.pem
userdb {
  driver = passwd
}


[root at dungeon sandra]# ls -la /var/spool/mail
total 2097152
drwxrwxr-x.  2 root         mail       4096 Nov 11 22:10 .
drwxr-xr-x. 16 root         root       4096 Nov 11 14:21 ..
-rw-rw----.  1 sandra       mail  625547161 Nov 11 21:32 sandra
-rw-rw----.  1 spamtrap_000 mail   26773946 Nov 11 20:53 spamtrap_000
-rw-rw----.  1 spamtrap_001 mail    3092961 Nov 11 22:10 spamtrap_001
-rw-rw----.  1 spamtrap_002 mail    8778257 Nov 11 00:03 spamtrap_002
-rw-rw----.  1 spamtrap_003 mail   63579856 Nov 11 21:21 spamtrap_003

Her directory:
[root at dungeon .imap]# ls -la
total 100
drw-------. 25 sandra sandra 4096 Jul  1  2008 .
drwx------.  4 sandra sandra 4096 Nov 10 10:48 ..
drwx------.  2 sandra sandra 4096 Jul  1  2008 bday
drwx------.  2 sandra sandra 4096 Jul  1  2008 beads
drwx------.  2 sandra sandra 4096 Jul  1  2008 books
drwx------.  2 sandra sandra 4096 Jul  1  2008 Drafts
drwx------.  2 sandra sandra 4096 Jul  1  2008 ham
drwx------.  2 sandra sandra 4096 Nov 11 21:39 INBOX
drwx------.  2 sandra sandra 4096 Jul  1  2008 Sent
drwx------.  2 sandra sandra 4096 Jul  1  2008 spam
drwx------.  2 sandra sandra 4096 Jul  1  2008 Trash
drwx------.  2 sandra sandra 4096 Jul  1  2008 Work

A working directory:
[root at dungeon .imap]# ls -la
total 56
drwx------. 14 spamtrap_003 spamtrap_003 4096 Oct 23 19:22 .
drwx------.  3 spamtrap_003 spamtrap_003 4096 Nov 10 09:15 ..
drwx------.  2 spamtrap_003 spamtrap_003 4096 Jun  8 08:40 Deleted Messages
drwx------.  2 spamtrap_003 spamtrap_003 4096 Aug 11  2011 Drafts
drwx------.  2 spamtrap_003 spamtrap_003 4096 Mar 18  2011 ham
drwx------.  2 spamtrap_003 spamtrap_003 4096 Nov 11 21:21 INBOX
drwx------.  2 spamtrap_003 spamtrap_003 4096 Oct 18  2013 Sent
drwx------.  2 spamtrap_003 spamtrap_003 4096 Aug 28 09:55 Sent Messages
drwx------.  2 spamtrap_003 spamtrap_003 4096 Oct  6 20:11 spam
drwx------.  2 spamtrap_003 spamtrap_003 4096 Nov 11 21:21 Trash




More information about the dovecot mailing list