How does useradd determine the default mailbox/maildir location

up at 3.am up at 3.am
Mon Oct 9 13:56:48 PDT 2006


What I do is remove FreeBSD's adduser script and make my own, which does
something like this:

pw useradd $USERNAME -g users -L users -m -s /bin/true -k /etc/skel \
|| exit
passwd $USERNAME
echo $USERNAME > /home/$USERNAME/.qmail-default
chmod 711 /home/$USERNAME

Of course, you need an /etc/skel with a properly set up Maildir (plus
.qmail, public_html or anything else you want) and edit those tags to suit
your requirements.

HTH,

James Smallacombe		      PlantageNet, Inc. CEO and Janitor
up at 3.am							    http://3.am
=========================================================================



More information about the freebsd-questions mailing list