Can you check if server1.mydomain.com points to the right IP address? You can do that by running
Code:
dig server1.mydomain.com
Also, please run
Code:
echo server1.mydomain.com > /etc/hostname
/etc/init.d/hostname.sh start
hostname -f should then show server1.mydomain.com.