The vzctl startup script /etc/vz/dists/scripts/debian-set_hostname.sh
does not setup /etc/mailname properly.  It's left with localhost set.

The following patch should solve this.  It also removes a small cosmetic
bug: The function set_hostname did not use the ${cfgfile} variable.

http://bugzilla.openvz.org/1035
http://bugs.debian.org/500862
1 file changed