You must have done something wrong, because everything uses the name
returned from mymailboxdir(). The only way that a correctly modified
imapd could have done that is if the client explicitly asked for
/home/martynas.
Run imapd from the shell, and give the command:
x list "" %
Do you see the files and directories in the home directory or in the
/data/mail directory?
You almost certainly do not want to use closedBox either. closedBox does
not have anything to do with using an alternative directory, and there are
specific security issues with using chroot() that only an expert should
undertake.
-- Mark --
http://staff.washington.edu/mrc
Science does not emerge from voting, party politics, or public debate.
Si vis pacem, para bellum.