On Sun, Feb 07, 1999 at 09:50:39PM +0000, Michael Bryan wrote:
> Hey Guys,
>
> I spent most of yesterday working on switching from sendmail to qmail
> and I'm very pleased with the performance. However, I'm having trouble
> with just a few nagging things.
>
> To Maildir or, to Mailbox....that is the question.
Maildir is the answer, pretty much always.
> I like the Maildir idea, but I've been unable to get it working, yet.
> It complains that no Maildir has been created, however, one exists. So,
> for right now, I'm going with Mailbox..and symlinking to
> /var/spool/mail. My question is this:
If the Maildir is there and is the ownership is correct, there shouldn't be any
complaints. Did you use /var/qmail/bin/maildirmake to create the Maildir, and
is it owned by the user? Did you replace ./Mailbox with ./Maildir/ (note the
trailing slash) in /var/qmail/rc (or whatever script you start qmail-send
with)?
> How can I get the useradd program to automagically set up the symlink?
> Or, would I be better advised to just switch to the Maildir format. If
> so, could someone provide step by step instructions to do so. I looked
> at the install file which mentions it, however, it's not totally clear
> on EXACTLY what to do to what files.
As I mentioned above, you need to change ./Mailbox to ./Maildir/ in the script
you use to start qmail-send (probably /var/qmail/rc). Then just be sure that
each user has a Maildir, created by /var/qmail/bin/maildirmake and owned by the
user. The easiest way to do this for new users is to cd to /etc/skel or
/usr/share/skel or wherever your skeleton files for new users are and make the
Maildir there. Then all new users will get one when you useradd them. For
existing users you can use a shell script to create their Maildirs. Once mail
is being delivered to these Maildirs, you can use one of the scripts you'll
find at http://www.qmail.org to convert their existing mailboxes.
> Also, is there a way to get the .qmail file autocreated in a user
> directory when I add the user? (I may very well be missing some docs
> somewhere on that, but I can't find any.)
You don't have to have any .qmail files if your startup script is delivering to
./Maildir/ by defult.
> I have relatively few users right now, so I can play with things.
That being the case, I'd definitely recommend starting right off with maildir.
Chris