-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bill Hults wanted us to know:

>Hi
>I am using /var/qmail/maildirs for my users mail directories. I compiled
>qmail with MDIRMAKE turned on.
>It is not creating directories for the users. Does anyone know where qmail
>is trying to create these dirs?

You have to tell it _how_ to do it.  :)

[root@Galaxy control]# cat /var/qmail/control/dirmaker 
/var/qmail/bin/custom_dirmaker
[root@Galaxy control]# cat /var/qmail/bin/custom_dirmaker 
#!/bin/sh
logger "Creating Maildir/ for $1"
mkdir -m 700 -p $1

It uses the value of the attribute mailMessageStore plus the value that
you use to start qmail.  As an example, my system starts qmail with ./
for the maildir path instead of ./Maildir/ and I hardcode the entire
maildir path into the mailMessageStore attribute:

[root@Galaxy control]# lookup todd | grep mailMessageStore
mailMessageStore: /var/qmail/maildirs/todd/Maildir
[root@Galaxy control]# cat /var/qmail/rc | grep -v "^#"
exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start ./ splogger qmail
- -- 
Blue skies...   Todd    Public key: http://www.mrball.net/todd.asc
 Favourite shell:  bash, though I also like 'init=/usr/bin/emacs'
                                                --Andrew Tridgell
   Linux kernel 2.4.19-16mdk   load average: 1.13, 1.82, 1.79
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9//6LIBT1264ScBURAuXMAKC6JBugCrnpIB71ZvftnCf64IFXFQCgoa8C
2j109f/iSlucVpw1aSMkeQs=
=8idz
-----END PGP SIGNATURE-----

Reply via email to