Changing the Hostname on Ubuntu Server
Before we configure Postfix MTA, let’s adjust our hostname to reflect the correct domain name in our outgoing internal email.
Setting up a hostname is really important if you’re using a custom domain for emailing. The hostname helps in proper mailing address.
One of the easiest and reliable solutions that I recommend is using G Suite to have a business email address, for example: team@restorebin.com. You can also get a 20% discount on sign up using this G Suite coupon code.
About Hostname, you can check your current hostname using the below command line in SSH:
hostname -f
The hostname command can also be used for changing the Ubuntu Server hostname throughout.
hostname example.com
I will be changing the hostname to demo.restorebin.com using below command. Continue reading