#! /bin/sh

SERVICE="/sbin/service"
RM="/bin/rm"
MAKEUSERDB="/usr/sbin/makeuserdb"
NEWALIASES="/usr/bin/newaliases"

$MAKEUSERDB

$RM -f /etc/courier-imap/userdb.lock

$NEWALIASES

$SERVICE postfix reload
$SERVICE courier-authdaemon restart

