In most Linux distributions, the old mail system package of sendmail is installed by default. After the system is installed, when restarting, many brothers encounter during the startup process. When it starts the sendmail service, it stops. Friends who have no patience and experience may think that the system is faulty or the system is not installed. In fact, neither the system is faulty, nor the system is not installed, but the system sendmail. When querying the A record or reverse domain name record of the host name you set, since the 9 DNS root systems in the world are all in the United States, this time you will query the dns A record corresponding to the host name of the machine, especially when you install the system. Set some of the "strange" host name, such as webserver, etc., this time sendmail will do this operation.
Apr 28 13:41:36 webserver sendmail[3494]: gethostby*.getanswer: asked for "webserver IN AAAA", got type "A"
Apr 28 13:42 :36 webserversendmail[3499]: gethostby*.getanswer: asked for "webserver IN AAAA", got type "A"
Apr 28 13:43:37 webserver sendmail: sendmail startup succeeded
Apr 28 13:43:37 webserver sm-msp-queue[3509]: gethostby*.getanswer: asked for "webserver IN AAAA", got type "A"
Good luck, mine It means your "RP", ok, oh, the query is faster, you can't feel the same, "RP" is not good, as little as one to two minutes, more than four to five minutes, and the fate is not reported any The error message, this time is much longer than the time we can endure "8s", and the brothers who suffer poorly in their hearts will suffer.
Understanding the crux of the problem, you can prescribe the right medicine. For example, we can modify the system configuration file /etc/hosts and /etc/resolv.conf
to let sendmial bypass the query remote host, here Given the easiest way to set an alias for the host
Modify /etc/hosts, before modifying
127.0.0.1 localhost.localdomain localhost
127.0.0.1 localhost.localdomain localhost webserver
Restart sendmail again
[root@webserver ~]# service sendmail restart
Shutting down Sm-client: [ OK ]
Shutting down sendmail: [ OK ]
Starting sendmail: [ OK ]
Starting sm-client: [ OK ]
The startup time has reached the second level.
System availability can be greatly improved by hardware redundancy or software. Hardware redundancy
Worker. Client: The originator of the request, which can be C, PHP, Perl, MySQL UDF, etc. Job: The
When a person is operating under Linux, they may encounter that the file they are doing is accident
Basic Concepts Virtualization allows multiple virtual machines with different operating systems to
How to build l2tpd vpn server with centOS5.5
Using XFS file system in Linux environment
Basic tutorial for acl settings under linux
Linux security mechanism detailed
Linux server operating system: foreign + domestic
Linux operating system static routing setup skills introduction
Kdump and crash configuration methods and failure analysis methods
Detailed installation process of DB2 database under inux
Linux system command make, clean usage explain
Arm linux boot process into the kernel
Description of the TIME/TIME+ value under the Linux TOP command
How to show hidden files in Windows
Win8 how to turn on or off the magnifier
Reinstall Win7 prompt "Windows installation can not continue" solution
Win8.1 must set 15 places Win8.1 optimization settings tutorial
Win10 system how to modify the computer IP address?
Three ways to lock the screen of Windows XP
How to set files in Windows 7 system check box