Dear team,
I have my users in /usr/home/user1 for user1, user2 for user2 etc. As these users also have a website, these folders have a /usr/home/user1/www folder, which is the docroot of their website.
What happens now is that Dovecot indexes also this /usr/home/user1/www folder and creates in every folder a .imap folder which content is an exact image of the folder it is created in. In practice this causes 2 times of webspace (which also in on the account of that user).
Can you pls tell me what I do wrong and how to solve this? I might be missing an 'exclude' folder setting for each dovecot user.
Thanks for you expertise, Jos
On 14-2-20 13:39, Aki Tuomi wrote:
This is why you put mail_location=driver:~/Mail and ensure the mails are under there, instead of mail_location=driver:~/
Yes, that is what I thought; when I use that setting, I get this error:
Feb 14 14:32:15 xxxx dovecot[8549]: imap(jos)<8739><5ErUO4meZthSsH9H>: Initializing mail storage from mail_location setting failed: Unknown mail storage driver driver in=0 out=375 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
Currently this is (part of) my dovecot.conf
--- cut ---
auth_mechanisms = plain login disable_plaintext_auth = no mail_location = mbox:/home/%u:INBOX=/var/mail/%u mail_privileged_group = mail
mail_debug=yes
auth_debug=yes
passdb { driver = pam }
--- cut ---
When I change
mail_location = mbox:/home/%u:INBOX=/var/mail/%u
into
mail_location = mbox:/home/%u/mail:INBOX=/var/mail/%u
I only get inbox (the /var/mail/%u content) and the Deleted mailbox.
/jos
- Jos Chrispijn, 14.02.20 14:47
Of course you shouldn't put "driver" there literally, but replace it with the actual mailbox type (ie. "mbox", "maildir", "dbox", ...). The error message below contains a hint to the problem, but admittedly it's easy to miss:
That's probably because the second part of Aki's advise hasn't been followed yet ("... and ensure the mails are under there, ..."). You need to physically move all mail related files and folders to the ~/mail subdir of each user. The "Deleted" mailbox probably still shows up because your MUA has been configured to use a local folder for it instead of an IMAP folder.
HTH, Thomas
participants (3)
-
Aki Tuomi
-
Jos Chrispijn
-
Thomas Zajic