Hostname on OpenVZ containers

SamTzu

Renowned Member
Mar 27, 2009
529
17
83
Helsinki, Finland
sami.mattila.eu
I'm having some problems with Postfix because postifx gets it's domain name from this line...

mydestination = $myhostname, localhost.$mydomain, localhost

Because OpenVZ containers normally only place the hostname on /etc/hostname file this creates problems on every reboot.
Postfix shows the server as server1.localdomain.


Any suggestions how to solve this problem?