I have created b4 a dirmakeer file in /var/qmail/control with
permission 755 and and the owner is root ,admins the file contain that
script
#!/bin/sh
mkdir -m 700 -p $1
do I give wrong permissions ?
you say nothing about the dirmaker-script.
Maybe, that is missed.
From QLDAPINSTALL:
------------------------------------
~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.
If you use $2 have a look at the first and last char to
ensure that it is a path to the maildir and not a pipe
or
mailbox
delivery. Possible very simple shell script:
-cut-
#!/bin/sh
mkdir -m 700 -p $1
#EOF
-cut-
------------------------------------
echo "/var/qmail/bin/dirmaker.sh" > /var/qmail/control/dirmaker
And then create the bin/dirmaker.sh file with the line from above and
make it executable.
Greets,
Oskar