A sample script to add a new user's mail-box


[Home]  [Site Map]  [Docs]  [Links]  [Help]  [About]  [Contact]  [Warning]


#!/bin/bash
#

# create a new user account
if [ $# -lt 1 ]; then
echo "Usage: newmbox user [comment]"
exit 1
fi

# mailbox-configuration
ln -s /home/mail/xyz /home/$1/.xyz@foo.net
ln -s /home/xyz/Archive /home/$1/.Archive

cp /home/default/.mailboxlist /home/$1/

chown $1 /home/$1/.mailboxlist



[Home]  [Site Map]  [Docs]  [Links]  [Help]  [About]  [Contact]  [Warning]



Copyright © 2002 by Pablo Hoertner. All rights reserved.
Last changes: Thursday, December 4