If Linux wants to send mail using sendmail or Exim, etc., it is essential to configure the correct hostname.
Check if your hostname is correct. Check the host command as:
hostname -f
If the hostname is not a correct domain name, you need to modify it. Modify the host name is divided into 3 steps, for example, my host name should be set to ahuang.org:
1.hostname modify the host name
hostname ahuang.org
2. Modify the /etc/hosts file
vim /etc/hosts
The contents are as follows:
127.0.0.1 localhost.localdomain localhost
173.255.246.150( Actual IP) ahuang.org ahuang
3. Modify the HOSTNAME line in /etc/sysconfig/network. If it does not exist, add
vim /etc/sysconfig/network
Content is
HOSTNAME=ahuang.org
Now, test if Sendmail can send mail normally:
echo "Subject: test"
Download Compile and install is very simple, several common dependencies must be installed first, so
Suddenly found that the website can not open, the database shows that the link can not be linked, th
STM32F103VCT6 comes with two 12-bit DAC, DAC conversion speed has not been found, some people say th
Preparation before erection: To set up a DNS server, you must install a software program that provi
The problem of the pipeline being closed by the acceptor in the Linux system is solved
P2v migration linux server under xenserver
View the file and folder size under Linux. Use df and du command to introduce
Correcting misunderstandings and misconceptions about Linux by Chinese people
There are several ways to log in to Linux on Windows platform:
Using Yum to manage local software packages
Rpm package and yum installation and uninstallation under CentOS
Optimization (configuration file) in nginx instructions
How to backup and restore the registry in Win10 preview
Four Steps to Create the World Unparalleled Windows 8
How to cancel the application being installed when installing Win8 system
Win7/Win8.1 system upgrade Win10 official version has been flashing how to solve
After the laptop is turned on, why is it
8 reasons why you don't have to upgrade Windows 7 SP1
How to cancel the Win7 system automatically pop up the dial-up connection dialog?