Hostname having harped on about the modular nature of postfix, it is only natural that the first setting we come to is hard coded...
In the case of multiple instance of postfix, in same server we need to set the hostname in postfix config file. Because in one server we can setup more than 1 postfix instance(ie,we can send mails for multiple domains).