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

April 19, 2014 3.7k 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 127.0.0.1 localhost veepme what should I change veepme to or should I leave veepme and add a FQDN to the two files.
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. myname.us but is not veepme.us so what goes in hostname and hosts?

I am guessing

hosts file gets 127.0.1.1 mail.myname.us veepme
hostname gets veepme

I am going by this install instruction.
http://www.iredmail.org/install_iredmail_on_ubuntu.html
Possibly nothing needs to be changed or added to hosts or hostname because my DNS record takes care of it?
Have another answer? Share your knowledge.