There is an article in the PMG wiki describing changing the hostname or ip - linked from the getting started page:
https://pmg.proxmox.com/wiki/index.php/Getting_started_with_Proxmox_Mail_Gateway#Changing_Hostname_or_IP
please try following this (and report if you run into issues, so we can...