Open the Postfix main.cf file and edit the following line:
myhostname = servername.com
Restart Postfix after the change.