Sophie

Sophie

distrib > Mandriva > 2011.0 > x86_64 > media > contrib-testing > by-pkgid > 0fdc13177bd43dce612a39b92729f761 > files > 8

zarafa-dagent-7.0.8-1.x86_64.rpm

#!/bin/sh

#
# This is an example script which creates a .forward file
# in the home directory of a user, which is being created
# in Zarafa. Place this file, with executable rights, in
# /etc/zarafa/userscripts/createuser.d/
# if you want a .forward file for delivery for each user.
#

HOMEDIR=`getent passwd $ZARAFA_USER | cut -d: -f6`

echo "\"| /usr/bin/zarafa-dagent $ZARAFA_USER\"" > $HOMEDIR/.forward
chown $ZARAFA_USER.$ZARAFA_USER $HOMEDIR/.forward