1

Topic: Install Docu: /etc/hosts declaration for FQDN

==== Required information ====
- iRedMail version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL):
- Linux/BSD distribution name and version:
- Related log if you're reporting an issue:
==== Hello,

why is it worth for a "Warning" notice inside the ubuntu install ducumentation?

    /etc/hosts: hostname <=> IP address mapping. Warning: List the FQDN hostname as first item.

# Part of file: /etc/hosts
127.0.0.1   mx.example.com demo localhost localhost.localdomain

Which service get in trouble if it looks like:

127.0.0.1  demo localhost localhost.localdomain  mx.example.com

BR,

2

Re: Install Docu: /etc/hosts declaration for FQDN

iRedMail will use FQDN in several config files, e.g. Postfix (parameter "myhostname="). And it gets the FQDN with command "hostname -f". If you don't list the FQDN as first item in /etc/hosts, it will return a short hostname instead.

3

Re: Install Docu: /etc/hosts declaration for FQDN

OK, but if there is an entry in /etc/hosts for interface IP additional like this:

127.0.0.1  demo localhost localhost.localdomain  mx.example.com
10.0.8.45 mx.example.com mx

then, it doesn't matter?

BR

PS: certainly, it is hostname declaration question, not a iRedMail issue...

4

Re: Install Docu: /etc/hosts declaration for FQDN

It doesn't matter.
iRedMail just need a FQDN returned by command "hostname -f".