{"id":162,"date":"2013-10-04T20:31:07","date_gmt":"2013-10-05T00:31:07","guid":{"rendered":"http:\/\/jonesling.us\/blog\/?p=162"},"modified":"2015-02-02T13:17:45","modified_gmt":"2015-02-02T18:17:45","slug":"dovecot-woes","status":"publish","type":"post","link":"https:\/\/blog.jonesling.us\/?p=162","title":{"rendered":"Dovecot woes"},"content":{"rendered":"<p>So after an upgrade, Dovecot failed to start:<\/p>\n<pre>Error: socket() failed: Address family not supported by protocol\nError: service(imap-login): listen(::, 143) failed: Address family not supported by protocol\nError: socket() failed: Address family not supported by protocol\nError: service(imap-login): listen(::, 993) failed: Address family not supported by protocol\nFatal: Failed to start listeners\n* start-stop-daemon: failed to start `\/usr\/sbin\/dovecot'\n* ERROR: dovecot failed to start<\/pre>\n<p>How irritating.<\/p>\n<p>A google search wasn&#8217;t particularly conclusive, but &#8220;<code>listen(::, 143) Address family not supported by protocol<\/code>&#8221; gave me some idea that it might be complaining about IPv6 support.\u00a0 I removed support some time ago from the kernel and libraries.\u00a0 (I don&#8217;t have a problem with IPv6 per se, but why have it when my ISP doesn&#8217;t support it?)\u00a0 I&#8217;ve had Dovecot running well for ages without it, so what changed?<\/p>\n<p>I found the culprit in \/etc\/dovecot\/dovecot.conf:<\/p>\n<pre># A comma separated list of IPs or hosts where to listen in for connections. \n# \"*\" listens in all IPv4 interfaces, \"::\" listens in all IPv6 interfaces.\n# If you want to specify non-default ports or anything more complex,\n# edit conf.d\/master.conf.\n#listen = *, ::<\/pre>\n<p>So the default configuration now enables IPv6. At least the fix is easy:<\/p>\n<pre>listen = *<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>So after an upgrade, Dovecot failed to start: Error: socket() failed: Address family not supported by protocol Error: service(imap-login): listen(::, 143) failed: Address family not supported by protocol Error: socket() failed: Address family not supported by protocol Error: service(imap-login): listen(::, 993) failed: Address family not supported by protocol Fatal: Failed to start listeners * start-stop-daemon: &hellip; <a href=\"https:\/\/blog.jonesling.us\/?p=162\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Dovecot woes&#8221;<\/span><\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","wprm-recipe-roundup-name":"","wprm-recipe-roundup-description":"","advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[9],"tags":[93],"class_list":["post-162","post","type-post","status-publish","format-standard","hentry","category-linux","tag-dovecot"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p4o3FW-2C","jetpack-related-posts":[],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/posts\/162","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=162"}],"version-history":[{"count":2,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/posts\/162\/revisions"}],"predecessor-version":[{"id":691,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=\/wp\/v2\/posts\/162\/revisions\/691"}],"wp:attachment":[{"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=162"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=162"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.jonesling.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=162"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}