Peter, any idea how main.cf could be empty to that postfix needs to use then gethostname function instead of the stored settings?