#!/bin/sh
### Copyright 1999-2014. Parallels IP Holdings GmbH. All Rights Reserved.
#

#
# Plesk script
#


### Copyright 1999-2014. Parallels IP Holdings GmbH. All Rights Reserved.
# Migration manager tables will be managed by plesk

### Copyright 1999-2014. Parallels IP Holdings GmbH. All Rights Reserved.
# 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?

