virtual users with postfix
Hello!
My passwd file looks like this:
info@nimmini.de:{CRAM-MD5}e33cbd144b372a9c919228923464c806b57e35df2d6d1484ceaabe7e3530cd58:5000:5000::/var/spool/vhosts/nimmini.de/info::userdb_mail=maildir:~/
When I login for the first time, I see this in the log:
Aug 29 09:52:57 imap(info@nimmini.de): Error: mkdir_parents(/var/lib/dovecot/db) failed: Permission denied Aug 29 09:52:57 imap(info@nimmini.de): Error: acl: dict commit failed
Although the mailbox "info" is created with this content:
drwx------ 2 5000 5000 4096 29. Aug 09:52 cur -rw------- 1 5000 5000 0 29. Aug 09:52 dovecot-acl-list -rw------- 1 5000 5000 272 29. Aug 09:52 dovecot.index.log -rw------- 1 5000 5000 72 29. Aug 09:52 dovecot.mailbox.log -rw------- 1 5000 5000 51 29. Aug 09:52 dovecot-uidlist -rw------- 1 5000 5000 8 29. Aug 09:52 dovecot-uidvalidity -r--r--r-- 1 5000 5000 0 29. Aug 09:52 dovecot-uidvalidity.55e164dc drwx------ 5 5000 5000 4096 29. Aug 09:52 .Drafts drwx------ 2 5000 5000 4096 29. Aug 09:52 new drwx------ 5 5000 5000 4096 29. Aug 09:52 .Sent -rw------- 1 5000 5000 18 29. Aug 09:52 subscriptions drwx------ 2 5000 5000 4096 29. Aug 09:52 tmp drwx------ 5 5000 5000 4096 29. Aug 09:52 .Trash
/var/lib looks like this: ... drwxr-xr-x 2 root root 4096 29. Aug 00:28 dovecot ...
Should the folder dovecot be owned by the user dovecot? What causes the error above?
Greetings
Andreas
Hi Andreas,
Am 29.08.2015 um 10:10 schrieb Andreas Meyer:
Aug 29 09:52:57 imap(info@nimmini.de): Error: mkdir_parents(/var/lib/dovecot/db) failed: Permission denied Aug 29 09:52:57 imap(info@nimmini.de): Error: acl: dict commit failed
try chmod /var/lib/dovecot 755
Greetings, Dravion
Hello!
"dravion.smith@gmx.net" dravion.smith@gmx.net schrieb am 29.08.15 um 10:41:09 Uhr:
Am 29.08.2015 um 10:10 schrieb Andreas Meyer:
Aug 29 09:52:57 imap(info@nimmini.de): Error: mkdir_parents(/var/lib/dovecot/db) failed: Permission denied Aug 29 09:52:57 imap(info@nimmini.de): Error: acl: dict commit failed
try chmod /var/lib/dovecot 755
this is what it already has.
Andreas
Am 29.08.2015 um 10:44 schrieb Andreas Meyer:
Hello!
"dravion.smith@gmx.net" dravion.smith@gmx.net schrieb am 29.08.15 um 10:41:09 Uhr:
Am 29.08.2015 um 10:10 schrieb Andreas Meyer:
Aug 29 09:52:57 imap(info@nimmini.de): Error: mkdir_parents(/var/lib/dovecot/db) failed: Permission denied Aug 29 09:52:57 imap(info@nimmini.de): Error: acl: dict commit failed
try chmod /var/lib/dovecot 755 this is what it already has.
Andreas# Hmm, did you use recursion? Maybe something like chmod -R 775 /var/lib/dovecot or chmod -R 777 /var/lib/dovecot service dovecot restart
Will do the trick. Other users in the maillist archive reported this solved thadt error. But maybe youre right and dovecot needs read/write/execute permissions as well chown -R /var/lib/dovecot service dovecot restart
And then relogin with Thunderbird or ou favorite IMAP client. Hope this helps.
Greetings, Dravion
"dravion.smith@gmx.net" dravion.smith@gmx.net schrieb am 29.08.15 um 10:53:24 Uhr:
Am 29.08.2015 um 10:10 schrieb Andreas Meyer:
Aug 29 09:52:57 imap(info@nimmini.de): Error: mkdir_parents(/var/lib/dovecot/db) failed: Permission denied Aug 29 09:52:57 imap(info@nimmini.de): Error: acl: dict commit failed
try chmod /var/lib/dovecot 755 this is what it already has.
Andreas# Hmm, did you use recursion? Maybe something like chmod -R 775 /var/lib/dovecot or chmod -R 777 /var/lib/dovecot service dovecot restart
Will do the trick. Other users in the maillist archive reported this solved thadt error.
I compared with a bit older installation and there I see:
drwxr-x--- 3 5000 5000 4096 18. Mai 2014 dovecot
# ll insgesamt 20 drwxr-xr-x 2 5000 5000 4096 8. Mai 2014 db -rw-r--r-- 1 root root 62 18. Mai 2014 instances -rw-r--r-- 1 root root 78 15. Mai 2014 mounts -rw------- 1 root root 1789 22. Dez 2013 replicator.db -rw-r--r-- 1 root root 230 15. Mai 2014 ssl-parameters.dat
I' ll try with set it to 5000:5000
Andreas
Am 29. August 2015 10:44:00 MESZ, schrieb Andreas Meyer anmeyer@mailbox.org:
Hello!
"dravion.smith@gmx.net" dravion.smith@gmx.net schrieb am 29.08.15 um 10:41:09 Uhr:
Am 29.08.2015 um 10:10 schrieb Andreas Meyer:
Aug 29 09:52:57 imap(info@nimmini.de): Error: mkdir_parents(/var/lib/dovecot/db) failed: Permission denied Aug 29 09:52:57 imap(info@nimmini.de): Error: acl: dict commit failed
try chmod /var/lib/dovecot 755
this is what it already has.
Please share your doveconf -n output.
Wild guess: changing the owner of /var/lib/dovecot to 5000:5000 should probably help.
Andreas
Regsrds
- c
Christian Kivalo ml+dovecot@valo.at schrieb am 29.08.15 um 11:00:23 Uhr:
Am 29.08.2015 um 10:10 schrieb Andreas Meyer:
Aug 29 09:52:57 imap(info@nimmini.de): Error: mkdir_parents(/var/lib/dovecot/db) failed: Permission denied Aug 29 09:52:57 imap(info@nimmini.de): Error: acl: dict commit failed
try chmod /var/lib/dovecot 755
this is what it already has.
Please share your doveconf -n output.
Wild guess: changing the owner of /var/lib/dovecot to 5000:5000 should probably help.
Yes, that did the trick!
Andreas
participants (4)
-
Andreas Meyer
-
Benny Pedersen
-
Christian Kivalo
-
dravion.smith@gmx.net