Set a fully qualified domain name (FQDN) hostname on your server

Posted April 19, 2014 7.6k views
I was reading on installation instructions for iredmail and it says you need FQDN name in etc/hostname and etc/hosts. Curently I in hostname I have have veepme In in hosts I have localhost veepme what should I change veepme to or should I leave veepme and add a FQDN to the two files.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers
You need a name that uniquely identifies your location in the DNS tree. In order for it to work for its intended purpose (e-mail, in your case), it needs to be a name that has a DNS record. I'm pretty sure you're missing at least a top level domain (com, org, net, etc.).
I have a .us and am running running it on on the droplet as a web server and it works. but is not so what goes in hostname and hosts?

I am guessing

hosts file gets veepme
hostname gets veepme

I am going by this install instruction.
Possibly nothing needs to be changed or added to hosts or hostname because my DNS record takes care of it?