{"id":5662,"date":"2019-10-21T14:47:33","date_gmt":"2019-10-21T19:47:33","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=5662"},"modified":"2019-10-22T14:53:24","modified_gmt":"2019-10-22T19:53:24","slug":"postfix-ipv6-loopback-failure","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=5662","title":{"rendered":"Postfix IPv6 Loopback Failure"},"content":{"rendered":"<p>I needed to send email messages from a PHP form, and the web server at work uses Postfix. So &#8230; I&#8217;m getting Postfix set up to relay mail for the first time in a decade or two \ud83d\ude42 I thought I&#8217;d just have to edit \/etc\/postfix\/main.cf and add &#8220;relayhost = [something.example.com]&#8221;.<\/p>\n<p>Nope. The service fails to start with nothing particularly indicative &#8212; just a [FAILED] status from the init script. Attempting to start Postfix outside of the init script is far more informative:<\/p>\n<pre>[lisa@564240601ac2 init.d]# \/usr\/sbin\/postfix start\r\npostfix: fatal: parameter inet_interfaces: no local interface found for ::1<\/pre>\n<p>Turns out I&#8217;ve got to edit \/etc\/postfix\/main.cf and tell it to use IPv4 only:<\/p>\n<pre># Enable IPv4, and IPv6 if supported\r\ninet_protocols = ipv4<\/pre>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I needed to send email messages from a PHP form, and the web server at work uses Postfix. So &#8230; I&#8217;m getting Postfix set up to relay mail for the first time in a decade or two \ud83d\ude42 I thought I&#8217;d just have to edit \/etc\/postfix\/main.cf and add &#8220;relayhost = [something.example.com]&#8221;. Nope. The service fails &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[30],"tags":[832],"class_list":["post-5662","post","type-post","status-publish","format-standard","hentry","category-system-administration","tag-postfix"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5662","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=5662"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5662\/revisions"}],"predecessor-version":[{"id":5663,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/5662\/revisions\/5663"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=5662"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=5662"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=5662"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}