> I know that each user will need theses directory in your home. But the
problem is: How I can do it? Because I have more 100 users in system. There
is some utility or some command that do it just once?
I was hoping that someone else had a utility to do it. : )
For new users, I have the .qmail and Maildir directory structure in the
.skel directory, so they get it by default. For existing users, I use a
perl script called "qmailsetup". It's not exactly world-class programming,
and could use some error checking. I'll provide the contents here with a
warning that although it works fine for me, it's not exactly the best piece
of work out there, just a quickly-hacked-together program, as are most
things in this shop because of time constraints.
---------------
#!/usr/bin/perl
$username=($ARGV[0]);
$file="~$username/.qmail";
system("echo ./Maildir/>$file");
system("/usr/bin/qmail/maildirmake ~$username/Maildir");
system("chown $username.popusers ~$username/.qmail");
system("chown -R $username.popusers ~$username/Maildir");
exit(0);
-----------------
And before everyone flames me for abominable coding, I didn't write it,
and I have no less than 107 higher-priority projects at the moment. : )
steve