Exim and hostname FQDN Problem

Source: Internet
Author: User

For some type of setups, if network connections not available during startup process, exim4 takes long time to start. To solve this problem, you must use
DC_minimaldnsOption of exim4. you can also configure this feature

Dpkg-reconfigure exim4-config

On Debian based systems. You shoshould answerYesFor the question"Keep number of DNS-queries minimal?"

 

However, ifHostname -- fqdnCommand doesn't print a full qualified hostname (actually only checked one dot) exim4 gives a warning and dc_minimaldns function doesn't work.

 

For example your hostname is"Debian"And if hostname -- FQDN also prints just"Debian"This is due to the following behaviour of hostname command:

  • When used -- fqdn parameter, firstly it learns the exact hostname
  • After hostname is learned, it usesGethostbyname ()Function and prints
    H_nameFieldHostentStructure.

Probably you have a record in/etc/hosts file like that:

127.0.0.1 Debian

In this scenario,Hostname -- fqdnWill also just print"Debian". To solve this you must write a dotted hostname first in/etc/hosts file like that:

127.0.0.1 debian. localhost debian

After thatHostname -- fqdnWill print"Debian. localhost"And this makes exim4 happy.

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.