On Thu, 22 Jul 2004, Jean-Rene Cormier wrote:
[snip]
Yes I know that, I use the Courier schema with the mailbox but I'd like
to not have to set it to Maildir/ for my virtual domain users in the
OpenLDAP directory and instead use Maildir/ as a default
While this is not exactly what you are looking for, I wrote a small patch
to define a default home directory attribute. I did this so I could have a
home directory defined in LDAP for posix accounts (homeDirectory), and a
default home directory defined for all virtual users.
(Strictly speaking I implemented a default_homedirectory_attr. This let me
set the homedir for virtual users to equivalent to their maildir but let
posix users use their real homedir. I did this so I could do fun things
like deliver all virtual mail as a vmail user but deliver posix mail as
the proper uid and still ensure that .mailfilter files would have the
correct permissions for each type of delivery. The other solution would
have been to write a custom LDAP schema.)
The patch, which I attach for posterity, is all of 43 lines, so a similar
solution could be equally trivial in your case.
/joeyo