Dan Mahoney, System Admin
2007-Oct-10 23:27 UTC
[Dovecot] Homedir Access without exposing whole Homedir.
Hello All, Dovecot 1.0.3 I am coming from UW IMAP, and I'm finding for some reason that mail is getting stored in a variety of places (which I believe, is because by default UW imap allowed access to the entire home directory). All files are mbox. My default delivery location is ~/.mail Thus: * At least a couple of my users have mail in ~/INBOX, as well as ~/INBOX.drafts (not many users so I don't really care about this). * Several of my users have their mail folders in their home directory, AND in a mail folder. For example, my "test case" user, had the following .mailboxlist file: mail/Sent mail/Drafts mail/Spam mail/Trash Sent Items Drafts Deleted Items Junk E-mail Now, here's the question. I'd like to make it so that everyone has what they had before, but that any new folders are created in ~/mail/ (so that if I ever DO decide to convert, I know where to look). What I thought would be useful for this is make the default namespace "", but set it hidden. Then define a secondary namespace (mail) and use that. However, when I did this, and got a mailbox list, it still recursively listed every file in the homedir. Is there a simple way to do what I want? -Dan Mahoney -- "Station!" -Bill & Ted's Bogus Journey --------Dan Mahoney-------- Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC ICQ: 13735144 AIM: LarpGM Site: http://www.gushi.org ---------------------------
Timo Sirainen
2007-Oct-20 21:35 UTC
[Dovecot] Homedir Access without exposing whole Homedir.
On Wed, 2007-10-10 at 19:27 -0400, Dan Mahoney, System Admin wrote:> What I thought would be useful for this is make the default namespace "", > but set it hidden. Then define a secondary namespace (mail) and use that.Most clients don't use namespaces at all, so having a hidden "" namespace is pretty pointless. v1.1 actually gives an error message if you try to do that.> Is there a simple way to do what I want?Nope. Probably the best way would be to make Dovecot use only ~/mail/ and create some script that finds all files looking like mbox and moves them there. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: This is a digitally signed message part URL: <http://dovecot.org/pipermail/dovecot/attachments/20071021/02220a15/attachment-0002.bin>
Dan Mahoney, System Admin
2007-Oct-21 04:00 UTC
[Dovecot] Homedir Access without exposing whole Homedir.
On Sun, 21 Oct 2007, Timo Sirainen wrote:> On Wed, 2007-10-10 at 19:27 -0400, Dan Mahoney, System Admin wrote: > >> What I thought would be useful for this is make the default namespace "", >> but set it hidden. Then define a secondary namespace (mail) and use that. > > Most clients don't use namespaces at all, so having a hidden "" > namespace is pretty pointless. v1.1 actually gives an error message if > you try to do that.Yes, but about half my users are using squirrelmail, which DOES.>> Is there a simple way to do what I want? > > Nope. Probably the best way would be to make Dovecot use only ~/mail/ > and create some script that finds all files looking like mbox and moves > them there...or just look through people's subscription files, mebbe. -Dan -- "There is no right and wrong, there is only fun and boring." -Fisher Stevens, "Hackers" --------Dan Mahoney-------- Techie, Sysadmin, WebGeek Gushi on efnet/undernet IRC ICQ: 13735144 AIM: LarpGM Site: http://www.gushi.org ---------------------------