[Dovecot] Maildir delete folder error

Peter Tambach info at petertambach.com
Sat Mar 15 17:09:05 EET 2008


I'm getting errors when I try to delete a maildir folder.

Dovecot versions 1.0.10, 1.0.13, 1.1.rc1, 1.1,rc3
Error received:
"dovecot: Mar 15 15:20:29 Error: IMAP(test at mydomain.com): 
unlink_directory(/home/mail/mydomain.com/test/..DOVECOT-TRASHED) failed: 
Permission denied"

dovecot -n:
"# 1.1.rc3: /etc/dovecot/dovecot.conf
base_dir: /var/run/dovecot/
log_path: /var/log/dovecot
info_log_path: /var/log/dovecot.info
protocols: imap pop3
ssl_disable: yes
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/libexec/dovecot/imap-login
login_executable(imap): /usr/libexec/dovecot/imap-login
login_executable(pop3): /usr/libexec/dovecot/pop3-login
login_greeting: Dovecot DA ready.
verbose_proctitle: yes
first_valid_uid: 100
mail_location: maildir:/home/mail/%d/%n
mail_debug: yes
mail_executable(default): /usr/libexec/dovecot/imap
mail_executable(imap): /usr/libexec/dovecot/imap
mail_executable(pop3): /usr/libexec/dovecot/pop3
mail_plugin_dir(default): /usr/lib64/dovecot/imap
mail_plugin_dir(imap): /usr/lib64/dovecot/imap
mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3
auth default:
  mechanisms: plain digest-md5
  verbose: yes
  debug: yes
  passdb:
    driver: sql
    args: /etc/dovecot/dovecot-sql.conf
  userdb:
    driver: prefetch
  socket:
    type: listen
    client:
      path: /var/spool/postfix/private/auth
      mode: 432
      user: postfix
      group: postfix
"

dovecot-sql.conf:
"password_query = SELECT email as user, crypt as password, homedir as 
userdb_home, uid as userdb_uid, gid as userdb_gid FROM postfix_users 
WHERE email = '%u'"

Directory owners / perms:
/home/mail:  mail mail 0710
/home/mail/mydomain.com: mydomain mail 0710
/home/mail/mydomain.com/test/ and all contents: mydomain mail, dirs 
0700, files 0600


Tried all kinds of things, problem got me stuck for weeks. doesn't want 
to remove directory. Any help would be appreciated.

Greetings,
Peter


More information about the dovecot mailing list