It's doing exactly what it chould be doing give what you have in 
/var/qmail/control/dirmaker.  This file contains the path TO your 
dirmaker script. ie in my case:
# cat /var/qmail/control/dirmaker
/var/qmail/bin/homedir.sh

# cat /var/qmail/bin/homedir.sh
#!/bin/sh
/bin/mkdir -m 700 -p $1

You need to move your script out of the control/dirmaker and move it 
into another file then put the full path to that file into control/dirmaker.

--Mike

Kristof Bajnok wrote:
> Hi all,
> 
> I have some problems with autohomedirmaker, it puts a warning 
> 
>(Error_while_running_automatic_dirmaker:#!/bin/sh:_file_does_not_exist._(LDAP-ERR_#2.2.1)/#!/bin/sh:_exited_non_zero._(LDAP-ERR_#2.2.2)/)
> 
> to mail.log.
> 
> Strace output:
> [pid  1622] execve("#!/bin/sh", 
> ["#!/bin/sh","/var/lib/Maildirs/koztisztviselo"..., 
> 
>"./Maildir/"],["PATH=/var/qmail/bin:/usr/local/s"...,"QLDAPAUTOHOMEDIRMAKE=#!/bin/sh","QMAILQUOTA=","QMAILDOTMODE=ldaponly"])=-1
> 
> ENOENT (No such file or directory)
> 
> It seems to me, that dirmaker points to '#!/bin/sh' instead of the proper 
> /var/qmail/control/dirmaker, so dirmaker doesn't even gets started. 
> 
> Any ideas? What am I doing wrong?
> 
> Kristof
> 
> PS: 
> bajnokk@szamoca:~$ cat /var/qmail/control/dirmaker
> #!/bin/sh
> /bin/mkdir -m 700 -p $1
> 
> This file is set to 755.

Reply via email to