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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20200214/17d92d3e/attachment.html>
On 14.2.2020 14.35, Jos Chrispijn wrote:> 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 >This is why you put mail_location=driver:~/Mail and ensure the mails are under there, instead of mail_location=driver:~/ Aki -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://dovecot.org/pipermail/dovecot/attachments/20200214/6ae8812f/attachment.html>
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
On 15-2-20 11:55, Thomas Zajic wrote:> 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.Just to let you know that I also noticed that in a far past I created in the BSD root a symbolic link 'home -> usr/home'. That works for most programs, but obviously the use of this '/home' link in my old Dovecot config is not picked up by Dovecot as being redirected to '/usr/home'. ./joz