host

The /etc/mail/local-host-names configuration file

sendmail uses the following configuration files:

 

The /etc/mail/local-host-names configuration file

sendmail uses the following configuration files:

 

Checking your Linux host name and Configuring /etc/hosts and Setting the Host Name using hostname

Checking your Linux host name
First, see if your host name is set correclty using the following commands:

uname -n
hostname -a
hostname -s
hostname -d
hostname -f
hostname

If the above commands return correctly with no errors then all may be well; however, you may want to read on to verify that all settings are correct.

Configuring /etc/hosts
If your IP address is assigned to you by a DHCP server, then /etc/hosts is configured as follows:

127.0.0.1 mybox.mydomain.com localhost.localdomain localhost mybox

 

Syndicate content