If you want Postfix to use a some value other than the default ("localdomain" or the kernel domain name), then you must update the appropriate Postfix configuration parameter.
If you object to the idea of having to update a Postfix configuration parameter, then you must not use Postfix. Wietse