Solution to slow startup of sendmail and sm-client in CentOS (RedHat)

Source: Internet
Author: User

In CentOS (RedHat), the sendmail and sm-client start slowly. If you need a solution, please refer to this article.

Starting sendmail:

Starting sm-client:

After I posted an article about modifying the host name, I accidentally found that when CentOS was restarted, the system would be stuck in sendmail and sm-client for nearly three minutes, I found the sendmail and sm-client documents and found that I had made an error.

The reason is that sendmail and sm-client are both MTA and only the network host name, such as admin.slyar.com. localdomain is changed to Slyar, which does not comply with the network host name specification, so the startup speed is slow. The solution is as follows:

1. Change the host name under/etc/sysconfig/network to the network host name Slyar. localdomain.

# Vim/etc/sysconfig/network


2. Change the host name under/etc/hosts to the network host name Slyar. localdomain.

# Vim/etc/hosts


3. restart the system so that the system will not be slow in the future.

# Reboot

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.