Next Previous Contents

4. Usage

Now that you have successfully compiled and installed authmkhome, you need to

There's one important thing you must be aware of before configuring authmkhome: courier uses a list of modules to authenticate the user. The first module that successfully authenticates the user, enters the home directory of the user. Once there, the authentication goes on and authmkhome is called. However, if the first module fails to change the directory, the authentication will immediately stop, without a chance for authmkhome to create the needed directories. There are two solutions to this problem:
  1. You set in your database a generic home directory (like /home) and you let your script change to the correct directory.
  2. You use authmkhome just to create the ``Maildir'' subdirectory under the home of the user.
The first method is not quite usable if you have shell users and you use the standard /etc/passwd file to retrieve authentication data for courier. However, it should be trivial to correctly set up authmkhome in any other case and the second method should be more than enough if you have shell users.


Next Previous Contents