On Wed, Dec 01, 2004 at 09:29:50AM -0500, Mike Zupan wrote:
> I'm having some issues getting the custom dirmaker to work. I had it
> working before.. but now it will not create a new directory.
> 
> Here is what i have in my qmail Makefile
> MDIRMAKE=-DAUTOMAILDIRMAKE
> HDIRMAKE=-DAUTOHOMEDIRMAKE

> homeDirectory: /var/qmail/maildirs/test/Maildir

Shouldn't this be withouth the "Maildir" at the end?

> [EMAIL PROTECTED] qmail]# cat /var/qmail/control/dirmaker         
> /var/qmail/bin/custom_dirmaker
> [EMAIL PROTECTED] qmail]# cat /var/qmail/bin/custom_dirmaker
> #!/bin/sh
> logger "Creating Maildir/ for $1"
> mkdir -m 700 -p $1
> [EMAIL PROTECTED] qmail]# ls -ls /var/qmail/bin/custom_dirmaker
> 1 -rwxr-xr-x  1 root root 63 Dec  1 08:08 /var/qmail/bin/custom_dirmaker

I'm not sure what "logger" is, but you could do something simple like
having a
  echo "running dirmaker" >> /tmp/dirmaker.log
at the beginning.

Can you do a
  $(cat /var/qmail/control/dirmaker) foo
and have it create the /var/qmail/maildirs/foo directory?

I'm not sure about your setup but in mine I also create the Maildir
directory and put in a .qmail file.  But that might be optional.

Chris

Reply via email to