[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
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.
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
participants (2)
-
Dan Mahoney, System Admin
-
Timo Sirainen