#!/bin/sh
#
# Copyright (c) 1999-2008 Parallels
# All rights reserved
#

#
# Plesk script
#

# mailsrv_entities dump was reinit postfix virtual.db table 
# after change hostname. There are new hostname was get from main.cf
# which was replaced by postfix_conf_set utility
/usr/lib/plesk-9.0/postfix_conf_set --replace myhostname "$1" \
   && /usr/lib/plesk-9.0/mailsrv_entities_dump

# should we explicitly append '$myhostname' to mydestination as well?
# or just rely on sanity of Postfix settings?

