Here is a new feature that has been added to the
vdelivermail and vchkpw programs.
If a user exists in the authentication module, but thier
directory entry is blank (null or 0 length string), then
both vdelivermail and vchkpw will automatically create
a directory using the bigdir directory layout algorythm
that is used in the vadduser program. Then it will update
the authentication information.
How is this useful?
Using LDAP or an SQL database, you can add users to any
domain by adding an entry for them in the database.
This raises two problems
1) who creates the directory for the users mail?
2) who figures out the best place to put the directory?
With this new feature in place, just add the user with
a blank directory value. The first time email is delivered
to the user, or they check thier email via pop, it will
use the fancy directory layout algorytm to pick the
best place to put thier directory, and then create the
directory.
That is what is in place now. Next thing we are going
to do is move this functionality to the vauth_getpw
function. For several reasons
1) don't have to have the same code in vchkpw and vdelivermail
2) sqwebmail, courier-imap or anyone else who uses vauth_getpw
will have the same functionality.
Ken Jones