#!/bin/bash
### Copyright 1999-2017. Plesk International GmbH. All rights reserved.
# vim:ft=sh:

# 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/lib64/plesk-9.0/postfix_conf_set --replace myhostname "$1" \
   && /usr/lib64/plesk-9.0/mailsrv_entities_dump \
   && /usr/lib64/plesk-9.0/mailman_lists_dump

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

