Re: hardwiring the IMAP folders directory
On Wed, May 26, 2004 at 08:02:01PM +0200, Nicolas Kowalski wrote: Thomas Lohman [EMAIL PROTECTED] writes: For my lab, I followed most of the instructions/patches found here: http://carumba.com/imap/ It worked well for me. Two caveats with that one, EMPTYPROTO should be set to use the Unix mailbox format, not MBX. And clever users may create subfolders with . as the first charactor. --- __o Bradley ArltSecurity Team Lead _ \_ [EMAIL PROTECTED] University Of Calgary (_)/(_) Las hojas de coca no es droga. Computer Science
Re: hardwiring the IMAP folders directory
Thanks for the quick reply Mark. I believe I now have it looking in a fixed locale for folders but in testing with the Mozilla mail client and setting the IMAP Server Directory setting, I see that that overrides whatever I have fixed in the server code. i.e. if I set the client setting to /mail/folders/username then my server side setup is overridden. It looks as though the client is prepending the entire path onto each folder name and thus when the server sees it, it sees it with the entire path. Is there any way to strip away absolute folder paths at the server side so if it sees a folder /mail/folders/username/foo, it simply processes it as 'foo' and uses the default fixed location? thanks very much, --tom On Tue, 25 May 2004, Thomas J. Lohman wrote: Hi, forgive me if this is in the archives or has a well known basic solution but what I would like to do is have the imap server always look in a fixed location outside the users' home dirs for folders. The answer is the routine mymailboxdir() in env_unix.c, which returns the home directory as far as IMAP is concerned. Normally, it returns the string from myhomedir() which is the UNIX home directory. But you can change mymailboxdir() to be anything else you'd like. -- Mark -- http://staff.washington.edu/mrc Science does not emerge from voting, party politics, or public debate. Si vis pacem, para bellum.
Re: hardwiring the IMAP folders directory
On Wed, 26 May 2004, Thomas Lohman wrote: Is there any way to strip away absolute folder paths at the server side so if it sees a folder /mail/folders/username/foo, it simply processes it as 'foo' and uses the default fixed location? The routine mailboxfile() in env_unix.c transforms a mailbox name into a file path. You can modify it to resolve the names however you want. I'm not convinced that you really want to do what you suggest, as opposed to some alternative strategy, but it's your choice. -- Mark -- http://staff.washington.edu/mrc Science does not emerge from voting, party politics, or public debate. Si vis pacem, para bellum.
Re: hardwiring the IMAP folders directory
Mark Crispin wrote: The routine mailboxfile() in env_unix.c transforms a mailbox name into a file path. You can modify it to resolve the names however you want. I'm not convinced that you really want to do what you suggest, as opposed to some alternative strategy, but it's your choice. Thanks. Our main goal is to avoid all the NFS mounts that take place due to the fact that in our environment, all UNIX home directories are scattered across 50-60 machines. That latter fact is really unchangeable at the moment. In the past, we've had issues with machines not being accessible and thus causing problems for everyone reading their mail off of the post office server. In addition, we'd like to centralize all IMAP folders in one location so it is easier to debug problems/do restores, etc. We want to avoid the situation where Joe User is able to specify some random location to store his IMAP folders yet when there are problems with these, Joe User fails to let anyone know this fact. I am not sure what the best approach to solving these issues is but I am open to any ideas anyone on the list has. thanks very much, --tom
Re: hardwiring the IMAP folders directory
Thomas Lohman [EMAIL PROTECTED] writes: [...] reading their mail off of the post office server. In addition, we'd like to centralize all IMAP folders in one location so it is easier to debug problems/do restores, etc. We want to avoid the situation where Joe User is able to specify some random location to store his IMAP folders yet when there are problems with these, Joe User fails to let anyone know this fact. [...] For my lab, I followed most of the instructions/patches found here: http://carumba.com/imap/ It worked well for me. Mes 2 cents. -- Nicolas
hardwiring the IMAP folders directory
Hi, forgive me if this is in the archives or has a well known basic solution but what I would like to do is have the imap server always look in a fixed location outside the users' home dirs for folders. e.g. UNIX home dir: /homes/username imap folder dir: /mailhome/username/folders irregardless of what their IMAP client has set for the IMAP folder directory. In addition, I'd like to also have the imap server think their home dir is /mailhome/username instead of what the system says from the passwd information. In our current setup of UNIX machines, users' home dirs are scattered across 50 or so machines and we use 'amd' to make sure no matter what machine the user logs in on they always get the same home dir. In order to support legacy mail readers, I'd like our post office box server (where imap/pop run) to also give the user this home dir if they choose to login directly to it to use a mail client that reads things directly from their INBOX/spool. But what I'd like to avoid is the other 50 or so filesystems all being automounted when users read their mail with pop/imap. It seems that the imap server process looks in this directory for some things which is causing the automount to take place - even if the user has their folder directory set to a separate fixed location such as /mailhome/username/folders. Currently, our workaround is to give folks a separate home dir on the post office box machine which overrides the information in our NIS database. This works except for the legacy folks. So, I am wondering if there is a more elegant solution within the imap/pop code to deal with this. If not, then I'll know to move to Plan B. :) We're currently testing imap-2004.RC9 and that is the code revision level I am currently looking at. thanks very much, --tom -- -- For information about this mailing list, and its archives, see: http://www.washington.edu/imap/c-client-list.html --
Re: hardwiring the IMAP folders directory
On Tue, 25 May 2004, Thomas J. Lohman wrote: Hi, forgive me if this is in the archives or has a well known basic solution but what I would like to do is have the imap server always look in a fixed location outside the users' home dirs for folders. The answer is the routine mymailboxdir() in env_unix.c, which returns the home directory as far as IMAP is concerned. Normally, it returns the string from myhomedir() which is the UNIX home directory. But you can change mymailboxdir() to be anything else you'd like. -- Mark -- http://staff.washington.edu/mrc Science does not emerge from voting, party politics, or public debate. Si vis pacem, para bellum.