On Fri, Jan 21, 2000 at 10:02:27AM +0100, Andrea Verni wrote:
> Andre Oppermann wrote:
> 
> > You compiled your checkpassword with debugging enabled. Turn it off,
> > recompile and install again.
> 
> ok, now it should be ok. 
> 
> I'm using Qmail+LDAP and I can't understand how to create the correct
> $HOME/Maildir and set the permission for Maildir delivery. 
> 
> If I use /etc/passwd I should chown /home/<$USER> to ghe UID/GID of this
> user but if I use LDAP what kind of permission should I set ?

Create a user for virtual users accounts, for example "popusers" belonging to 
a group "popgroup".

Put "popusers" to the file
~control/ldapusername
+
+ The default username used in virtual users environments
+ Default: NULL
+ Example: popusers
+ Note: Must be an existing username

Put "popusers" user ID to the 
~control/ldapuid
+
+ The default UID used in virtual users environments
+ Default: NULL
+ Example: 1010
+ Note: Must match the username, must be above 100

Put "popgroup" group ID to the
~control/ldapgid
+
+ The default GID used in virtual users environments
+ Default: NULL
+ Example: 1010
+ Note: Must match the username, must be above 100

If you want home and mail directories created automagically, put the name of a 
script to the file
~control/dirmaker
+
+ Absolute path to your program/script that creates missing homedirs
+ Default: none (off)
+ Example: /var/qmail/bin/create_homedir
+ Note: the script is executeded after the setuid/gid, it isn't running
+       under root for security reasons.
+       The command is executed with execve not system
+       (so mkdir --mode=700 -p does not work!) use a shell script.
+       $1 is the homedir-path and $2 is aliasempty.
+       Possible very simple shell script:
+
+       -cut-
+       #!/bin/sh
+       mkdir -m 700 -p $1
+       #EOF
+       -cut-

Create a directory for virtualusers mail, for example /var/qmail/popusers 
owned by the user "popusers". 
Set field mailMessageStore=/var/qmail/popusers/VirtUser.Name
(replace VirtUser.Name) for every virtual user.

+ mailMessageStore
+
+ Path to the maildir/mbox on the mail system
+ Example: /home/jdoe/


Hope this helps.

Andrzej

Reply via email to