Usually you just need to:
* set the short hostname (mx4) in /etc/hostname
* make sure that you have an entry for your fqdn and short hostname in /etc/hosts (for the ip of the system)
* set the domain part of the fqdn as search domain in /etc/resolv.conf
* run `pmgconfig sync --restart 1`
try it - I think the postfix config (which also yields the output you want changed) relies on /etc/hostname and /etc/resolv.conf only - but please verify for yourself