Slow issue of Linux SendMail sending

Source: Internet
Author: User

The problem is that the hosts have problems with the host settings, you can look at the /var/log/mail.log

Retry and sleeping, plus other time, with sendmail send mail so long, too tired, say the above error:

My unqualified host name (justswitch-64) unknown; Sleeping for retry

My hostname is justswitch-64, I in the hosts have already developed the IP address of this machine, why still can't, still can't find, continue

Executive Sendmail–v

Tips:

Warning:local host name (TESTDB) is not qualified; See cf/readme:who AM I?
Recipient names must be specified

Vim/usr/share/doc/sendmail/readme.cf
+-----------+
| Who AM I? |
+-----------+
Normally, the $J macro is automatically defined to be your fully
Qualified domain name (FQDN). Sendmail does this by getting your
Host name using GetHostName and then calling GetHostByName on the
Result. For example, in some environments GetHostName returns
Only the root of the host name (such as "foo"); GetHostByName is
Supposed to return the FQDN ("foo.bar.com"). In some (fairly rare)
Cases, gethostbyname may fail to return the FQDN. In the case
You must define confdomain_name to be your fully qualified domain
Name. This is usually the done using:
Dmbar.com
Define (' Confdomain_name ', ' $w. $m ') DNL

is a point of trouble, in the hosts add

127.0.0.1 justswitch-64 justswitch-64

Fix the problem, restart sendmail

Service SendMail Restart

And then the test, the speed is much faster. And also the speed of restarting the sendmail has been increased, basically the second start.

Read the blogger's post to solve the problem, thank you!

Connection:http://www.enjoydiy.com/1472.html

Slow issue of Linux SendMail sending

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.