'Please configure a fully qualified domain name' Error

7,055

Your /etc/hosts file should have a separate line defining the system's IP and fully-qualified domain name and the short name on the same line. Remove the "mail.website1.com" and "mail" from the line with 127.0.0.1.

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

10.2.0.6                mail.website1.com mail

Make this change and attempt again.

Also see: Setting the hostname: FQDN or short name?

Share:
7,055

Related videos on Youtube

pufAmuf
Author by

pufAmuf

I am a graphic designer that's learning php and jquery :)

Updated on September 18, 2022

Comments

  • pufAmuf
    pufAmuf almost 2 years

    I am running an nginx website on a virtual host and I am trying to set up iRedMail, but this is the error I get when running bash iRedMail.sh.

    < ERROR > Please configure a fully qualified domain name (FQDN) in /etc/hosts before we go further.


    etc/sysconfig/network file

    NETWORKING=yes
    HOSTNAME=mail.website1.com
    

    etc/hosts file (xxx.xx.xxx.xxx is my real server ip address)

    127.0.0.1   mail.website1.com mail localhost
    ::1         localhost
    
    xxx.xx.xxx.xxx website1.com
    xxx.xx.xxx.xxx website2.com
    

    What am I doing wrong? Thanks!

    Edit: Still coming up with this error.

    < ERROR > Please configure a fully qualified domain name (FQDN) in /etc/hosts before we go further.

    Example:

    127.0.0.1 mail.iredmail.org mail localhost

    This is my new config file:

    127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
    ::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
    
    xxx.xx.xxx.xxx website1.com
    xxx.xx.xxx.xxx mail.website1.com mail
    xxx.xx.xxx.xxx website2.com
    
  • pufAmuf
    pufAmuf almost 10 years
    Okay, I will do that. I also noticed that nowhere is website1.com listed on its own. Won't that cause any issues?
  • ewwhite
    ewwhite almost 10 years
    What you have for website1.com and website2.com is fine. I was just trying to get you past your mail configuration
  • pufAmuf
    pufAmuf almost 10 years
    Hello, I still get the error as before, and I have edited my post. I read the link you attached - and are you suggesting I change the HOSTNAME to something else and replace all localdomain's with the hostname?
  • ewwhite
    ewwhite almost 10 years
    The HOSTNAME variable should probably just be "mail". You'd need to restart the network service; service network restart following that. You may also just reboot. Either way. Don't touch any of the localhost/localdomain entries.