{"id":2907,"date":"2018-05-18T22:23:16","date_gmt":"2018-05-18T14:23:16","guid":{"rendered":"http:\/\/blog.pighead.cc\/whsyu\/?p=2907"},"modified":"2018-05-18T22:23:16","modified_gmt":"2018-05-18T14:23:16","slug":"dovecot-2-3","status":"publish","type":"post","link":"https:\/\/blog.pighead.cc\/whsyu\/2018\/05\/18\/dovecot-2-3\/","title":{"rendered":"Dovecot 2.3"},"content":{"rendered":"<p class=\"bb-post-separator\"><strong>[\u83ef\u8a9e, cmn-Hant-TW]  <\/strong><\/p><p>\u96d6\u7136\u8aaa\u53bb\u5e74\u5e95 <a href=\"https:\/\/www.dovecot.org\">Dovecot<\/a> 2.3 \u5c31\u63a8\u51fa\u4e86\uff0c\u4e0d\u904e\u4e00\u76f4\u90fd\u6c92\u6642\u9593\u7406\u4ed6\uff0c\u6700\u8fd1\u6bd4\u8f03\u6709\u7a7a\u5c31\u4f86\u7528 FreeBSD ports \u5347\u7d1a\uff0c\u7136\u5f8c\u5c31\u5361\u95dc\u4e86\uff0c\u9084\u597d\u554f\u984c\u90fd\u4e0d\u96e3\u8655\u7406\uff0c\u9996\u5148\u662f\u5347\u7d1a\u4e00\u5b9a\u6703\u9047\u5230\u7684\u5916\u639b\u7a0b\u5f0f\u7248\u672c\u5339\u914d\u554f\u984c<\/p>\n<pre>doveconf: Error: Couldn't load plugin \/usr\/local\/lib\/dovecot\/settings\/libmanagesieve_login_settings.so: Module is for different ABI version 2.2.ABIv35(2.2.35) (we have 2.3.ABIv1(2.3.1))\r\n<\/pre>\n<p>\u6240\u6709 dovecot-* \u76f8\u95dc\u5957\u4ef6\u91cd\u7de8\u5373\u53ef<\/p>\n<p>\u518d\u4f86\u8981\u8a2d\u5b9a dh.pem\uff0c\u7d30\u7bc0\u53ef\u4ee5\u770b<a href=\"https:\/\/wiki.dovecot.org\/SSL\/DovecotConfiguration\">\u9019\u7bc7<\/a>\u8aaa\u660e\uff0c\u4e0d\u904e\u5176\u5be6\u7167\u932f\u8aa4\u8a0a\u606f\u63d0\u793a\u7684\u65b9\u6cd5\u4f86\u8a2d\u5b9a\u5c31\u53ef\u4ee5\u4e86 (\u8a2d\u5b9a\u6a94\u5728 <code>\/usr\/local\/etc\/dovecot\/dovecot.conf<\/code>)<\/p>\n<pre>doveconf: Warning: please set ssl_dh=&lt;\/usr\/local\/etc\/dovecot\/dh.pem doveconf: Warning: You can generate it with: dd if=\/var\/db\/dovecot\/ssl-parameters.dat bs=1 skip=88 | openssl dhparam -inform der &gt; \/usr\/local\/etc\/dovecot\/dh.pem\r\n<\/pre>\n<p>\u9019\u6a23\u61c9\u8a72\u5c31\u53ef\u4ee5\u8dd1\u8d77\u4f86\u4e86\uff0c\u4e0d\u904e\u63a5\u4e0b\u4f86\u5c31\u767c\u73fe\u7cfb\u7d71\u602a\u602a\u7684\uff0csieve \u5931\u6548\u4e86\uff0c\u4fe1\u4e0d\u6703\u81ea\u52d5\u6b78\u6a94\uff0c\u770b\u4e86\u4e00\u4e0b maillog (<code>\/var\/log\/mailog<\/code>) \u627e\u5230\u4e86\u985e\u4f3c\u9019\u6a23\u7684\u8a0a\u606f<\/p>\n<pre>May 18 18:30:29 pighead dovecot: lmtp(pighead)&lt;66864&gt;&lt;Nbm6IUWr\/lowBQEAHS1Vsw&gt;: Error: sieve: Failed to initialize script execution: Invalid postmaster_address: invalid address `postmaster@' specified for the postmaster_address setting\r\n<\/pre>\n<p>\u9019\u500b 2.2 \u6c92\u8a2d\u6c92\u554f\u984c\uff0c\u5728 2.3 \u5c31\u4e0d\u884c\u4e86\uff0c\u6240\u4ee5\u8981\u624b\u52d5\u52a0\u4e00\u884c\u9032\u8a2d\u5b9a\u6a94<br \/>\n<code>postmaster_address = admin@pig-head.cc<\/code><br \/>\n\u9019\u500b\u5c31\u7167\u81ea\u5df1\u5be6\u969b\u4e0a\u7684 postmaster e-mail \u53bb\u8a2d\u5c31\u597d\u4e86\uff0c\u5176\u5be6\u96a8\u4fbf\u8a2d\u4e00\u500b\u4e5f\u7121\u59a8\u5c31\u662f<\/p>\n<p>\u9084\u6709\u4e00\u500b\u8ddf Let&#8217;s Encrypt SSL \u6709\u95dc\u7684\u72c0\u6cc1\uff0c\u5982\u679c\u628a chain.pem \u8a2d\u70ba ssl_ca\uff0ccert.pem \u8a2d\u70ba ssl_cert \u7684\u8a71\uff0c\u96d6\u7136\u4e00\u822c\u6536\u4fe1\u8edf\u9ad4\u6536\u4fe1\u6c92\u554f\u984c\uff0c\u4e0d\u904e Roundcube Webmail \u6703\u9023\u4e0d\u4e0a\uff0c\u5728 maillog \u88e1\u9762\u6703\u770b\u5230\u985e\u4f3c\u9019\u6a23\u7684\u8a0a\u606f<\/p>\n<pre>May 18 18:34:07 pighead dovecot: imap-login: Disconnected (no auth attempts in 1 secs): user=&lt;&gt;, rip=10.3.18.1, lip=10.3.18.1, TLS handshaking: SSL_accept() failed: error:14094418:SSL routines:ssl3_read_bytes:tlsv1 alert unknown ca: SSL alert number 48, session=&lt;4v7CTTts1Pp6dBv6&gt;\r\n<\/pre>\n<p>\u89e3\u6c7a\u65b9\u6cd5\u662f\u7528 fullchain \u7576 cert\uff0cdovecot.conf \u7684 ssl \u8a2d\u5b9a\u6703\u985e\u4f3c\u9019\u6a23<\/p>\n<pre>ssl_cert=&lt;\/usr\/local\/etc\/dehydrated\/certs\/pig-head.cc\/fullchain.pem\r\nssl_key=&lt;\/usr\/local\/etc\/dehydrated\/certs\/pig-head.cc\/privkey.pem\r\n<\/pre>\n<p>\u6709\u78b0\u5230\u7684\u554f\u984c\u5927\u81f4\u4e0a\u662f\u9019\u6a23\uff0c\u4e5f\u90fd\u89e3\u6c7a\u4e86\uff0c\u9084\u6709\u9047\u5230\u7684\u8a71\u518d\u4f86\u770b\u600e\u9ebc\u8655\u7406<\/p>\n","protected":false},"excerpt":{"rendered":"<p>[\u83ef\u8a9e, cmn-Hant-TW] \u96d6\u7136\u8aaa\u53bb\u5e74\u5e95 Dovecot 2.3 \u5c31\u63a8\u51fa\u4e86\uff0c\u4e0d\u904e\u4e00\u76f4\u90fd\u6c92\u6642\u9593\u7406\u4ed6\uff0c\u6700\u8fd1\u6bd4\u8f03\u6709\u7a7a\u5c31\u4f86\u7528 FreeBSD ports \u5347\u7d1a\uff0c\u7136\u5f8c\u5c31\u5361\u95dc\u4e86\uff0c\u9084\u597d\u554f\u984c\u90fd\u4e0d\u96e3\u8655\u7406\uff0c\u9996\u5148\u662f\u5347\u7d1a\u4e00\u5b9a\u6703\u9047\u5230\u7684\u5916\u639b\u7a0b\u5f0f\u7248\u672c\u5339\u914d\u554f\u984c doveconf: Error: Couldn&#8217;t load plugin \/usr\/local\/lib\/dovecot\/settings\/libmanagesieve_login_settings.so: Module is for different ABI version 2.2.ABIv35(2.2.35) (we have 2.3.ABIv1(2.3.1)) \u6240\u6709 dovecot-* \u76f8\u95dc\u5957\u4ef6\u91cd\u7de8\u5373\u53ef \u518d\u4f86\u8981\u8a2d\u5b9a dh.pem\uff0c\u7d30\u7bc0\u53ef\u4ee5\u770b\u9019\u7bc7\u8aaa\u660e\uff0c\u4e0d\u904e\u5176\u5be6\u7167\u932f\u8aa4\u8a0a\u606f\u63d0\u793a\u7684\u65b9\u6cd5\u4f86\u8a2d\u5b9a\u5c31\u53ef\u4ee5\u4e86 (\u8a2d\u5b9a\u6a94\u5728 \/usr\/local\/etc\/dovecot\/dovecot.conf) doveconf: Warning: please set ssl_dh=&lt;\/usr\/local\/etc\/dovecot\/dh.pem doveconf: Warning: You&hellip; <\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[4481,4591,4289,4287],"class_list":["post-2907","post","type-post","status-publish","format-standard","hentry","category-freebsd","tag-dovecot","tag-freebsd","tag-roundcube","tag-ssl"],"_links":{"self":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2907","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/comments?post=2907"}],"version-history":[{"count":10,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2907\/revisions"}],"predecessor-version":[{"id":2917,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/posts\/2907\/revisions\/2917"}],"wp:attachment":[{"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/media?parent=2907"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/categories?post=2907"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.pighead.cc\/whsyu\/wp-json\/wp\/v2\/tags?post=2907"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}