On Mon, 7 Jul 2003, Martynas Buozis wrote: > After examining other parts of code I decided to go for changing > env_init procedure and ensure, that myHomeDir will be set up to point > not to real home dir, but /data/mail/<user>.
The entire reason why there are separate myhomedir() and mymailboxdir() routines are to eliminate the need to do this. > Do you see any possible problems about this ? This looks more satisfying > for me as I want all mail and imap related files (including > configuration files) to be located in that specific directory, not in > real home directory. The only files which are in myhomedir() instead of mymailboxdir() are those files which MUST be in the home directory. So making that change actually breaks something. If you're having problems with your change to mymailboxdir(), then you need to debug that change and get it working, rather than make unwise changes elsewhere. > I understand chroot problems quite well, but in that case what should I > go for to ensure, that users will be able to see only files in > /data/mail/<user> ? I found restrictBox value but after some sort of > critics about blackBox and closedBox choices I am not sure if it can be > what I would like to go for ?... restrictBox is the correct thing to use. But first you need to debug the mymailboxdir() change. You don't want to make things more complicated until you get the simple thing working. The problem is undoubtably some basic error that you made. I suggest that you follow my earlier suggestion of running imapd under gdb with breakpoints set so you see what file path is being built by mailboxfile(). -- Mark -- http://staff.washington.edu/mrc Science does not emerge from voting, party politics, or public debate. Si vis pacem, para bellum.
