By kikorugeria
Hi. It’s my first time using digital ocean so forgive me for a noob question.
I’m currently setting up iRedMail with digital ocean. I’ve followed Step 1 and Step 3 of the instructions in “https://www.digitalocean.com/community/articles/how-to-install-iredmail-on-ubuntu-12-04-x64”
My hostname is “iredmail-testEmailServer” and i put “iredmai” on /etc/hostname. In my /etc/hosts I put “127.0.0.1 iredmail-testEmailServer iredmail localhost locahost.localdomain”
After performing those things and running “bash iRedMail.sh” the following error shows up: “Please configure a fully qualified domain name (fqdn) in /etc/hosts before we go further.”
My question is, why does it return the error above even when I’ve provided my FQDN in /etc/hosts?
Thanks in advance.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hey kikorugeria, Your first entry in /etc/hosts doesn’t actually include a fully qualified domain name (“iredmail-testEmailServer” is just the short hostname, a FQDN would look like “iredmail-testEmailServer.example.com”).
Is “iredmail-testEmailServer” the name of your droplet? If so, it isn’t immediately relevant to the configuration inside.
Try this:
Have ‘iredmail’ in /etc/hostname
This means the short hostname of your droplet is simply ‘iredmail’
and in /etc/hosts have
127.0.0.1 iredmail.example.com localhost localhost.localdomain
This would make your FQDN for the host to be ‘iredmail.example.com’
If you were planning on using your own domain you could change example.com to whatever you domain is, for example iredmail.kikorugeria.com (this would also require configuring your domain name in digital oceans admin panel)
You can verify that the FQDN is correct by running the following command:
hostname -f
which should display ‘iredmail.example.com’ (or similar) and not just ‘iredmail’.
After this you should be able to run iRedMail.sh
Hope this helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.