{"id":1207,"date":"2014-10-23T22:06:00","date_gmt":"2014-10-23T22:06:00","guid":{"rendered":"http:\/\/www.omniweb.com\/wordpress\/?p=1207"},"modified":"2014-10-23T22:06:08","modified_gmt":"2014-10-23T22:06:08","slug":"get-postfix-to-use-etchosts-file","status":"publish","type":"post","link":"https:\/\/www.omniweb.com\/wordpress\/?p=1207","title":{"rendered":"Getting Postfix to use \/etc\/hosts file"},"content":{"rendered":"<p>I have a mail server on a LAN and other servers on the same LAN have trouble sending to local addresses because they resolve the mail server to the public ip address but then can&#8217;t get there.  To fix this, I tried putting the mail server hostname and LAN ip into the \/etc\/hosts file, but frustratingly, postfix insists on not using the hosts file.  I searched around and found <a href=\"http:\/\/www.linuxquestions.org\/questions\/linux-software-2\/force-postfix-to-refer-etc-hosts-857662\/\">the solution here<\/a> <\/p>\n<blockquote><p>My config now is :<\/p>\n<p>Code:<br \/>\nlmtp_host_lookup = native<br \/>\nsmtp_host_lookup=native<br \/>\n#disable_dns_lookups = yes<br \/>\nignore_mx_lookup_error = yes<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>I have a mail server on a LAN and other servers on the same LAN have trouble sending to local addresses because they resolve the mail server to the public ip address but then can&#8217;t get there. To fix this, &hellip; <a href=\"https:\/\/www.omniweb.com\/wordpress\/?p=1207\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1207"}],"collection":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1207"}],"version-history":[{"count":2,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1207\/revisions"}],"predecessor-version":[{"id":1209,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/1207\/revisions\/1209"}],"wp:attachment":[{"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.omniweb.com\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}