CentOS (RedHat) SendMail and Sm-client startup slow resolution

Source: Internet
Author: User
Tags centos

Starting SendMail:

Starting sm-client:

I just made a modification to the host name after the article, I accidentally found that the system will be stuck in SendMail and sm-client for nearly 3 minutes after restarting the CentOS, looking for SendMail and sm-client documents to find that they have made a mistake.

Let me simply say the reason is that SendMail and Sm-client are both MTA, only the network hostname, such as admin.slyar.com, and I before that article directly to the Localhost.localdomain changed to Slyar, does not conform to the network host name specification, so the start-up speed is slow. The solution is as follows:

1. Modify/etc/sysconfig/network under the host name is the network host name Slyar.localdomain

# vim/etc/sysconfig/network


2. Modify/etc/hosts under the host name is the network host name Slyar.localdomain

# vim/etc/hosts


3. Reboot the system, and there will be no slow speed in the future.

# reboot

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.