Make Postfix use /etc/hosts

To make Postfix use /etc/hosts file to find IP address of the SMTP server before it contacts any DNS servers, add two lines to the /etc/postfix/main.cf file:

  • lmtp_host_lookup = native
  • smtp_host_lookup = native


Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.