{"id":203,"date":"2017-01-28T03:10:24","date_gmt":"2017-01-27T18:10:24","guid":{"rendered":"https:\/\/vicsfactory.com\/?p=203"},"modified":"2017-02-13T16:26:52","modified_gmt":"2017-02-13T07:26:52","slug":"%e3%83%a1%e3%83%bc%e3%83%ab%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc%ef%bc%88postfixdovecot%ef%bc%89%e9%80%9a%e4%bf%a1%e6%9a%97%e5%8f%b7%e5%8c%96","status":"publish","type":"post","link":"https:\/\/vicsfactory.com\/?p=203","title":{"rendered":"\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\uff08Postfix+Dovecot\uff09\u901a\u4fe1\u6697\u53f7\u5316"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>WEB\u30b5\u30fc\u30d0\u30fc\u306e\u6697\u53f7\u5316\uff08SSL\u5316\uff09\u306b\u4f7f\u3063\u305fcertbot\u306e\u30b5\u30fc\u30d0\u30fc\u8a3c\u660e\u66f8\u3092\u5229\u7528\u3057\u3066\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\uff08Postfix+Dovecot\uff09\u306e\u901a\u4fe1\u3082\u6697\u53f7\u5316\u3057\u307e\u3059\u3002<\/p>\n<p>\u203bcertbot\u3092\u4f7f\u3063\u305fWEB\u30b5\u30fc\u30d0\u30fc\u306e\u6697\u53f7\u5316\uff08SSL\u5316\uff09\u304c\u5b8c\u4e86\u3057\u3066\u3044\u308b\u524d\u63d0\u3067\u3059\u3002<\/p>\n<p>\u30fb\u30d0\u30fc\u30c1\u30e3\u30eb\u30db\u30b9\u30c8\u8a2d\u5b9a\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3066\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u540d\uff08mail.sample.com\uff09\u3067WEB\u30b5\u30fc\u30d0\u30fc\uff08sample.com\uff09\u306b\u30a2\u30af\u30bb\u30b9\u51fa\u6765\u308b\u3088\u3046\u306b\u3059\u308b\u3002<br \/>\n# vi \/etc\/httpd\/conf.d\/virtualhost-sample.com.conf<br \/>\n&lt;Virtualhost *:80&gt;<br \/>\nServerName sample.com<br \/>\nServerAlias mail.sample.com<br \/>\nDocumentRoot \/var\/www\/html<br \/>\n&lt;\/VirtualHost&gt;<\/p>\n<p>\u30fb\u8a2d\u5b9a\u53cd\u6620<br \/>\n# systemctl reload httpd<\/p>\n<p>\u30fb\u30b5\u30fc\u30d0\u30fc\u8a3c\u660e\u66f8\u53d6\u5f97<br \/>\ncertbot certonly &#8211;webroot -w \u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u30eb\u30fc\u30c8 -d \u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u540d -m \u30e1\u30fc\u30eb\u30a2\u30c9\u30ec\u30b9 &#8211;agree-tos<\/p>\n<p>\u30fbPostfix\u8a2d\u5b9a<br \/>\n# vi \/etc\/postfix\/main.cf<br \/>\n\u4e0b\u8a18\u3092\u8ffd\u8a18<br \/>\nsmtp_tls_security_level = may<br \/>\nsmtpd_tls_security_level = may<br \/>\nsmtpd_tls_cert_file = \/etc\/letsencrypt\/live\/mail.sample.com\/fullchain.pem<br \/>\nsmtpd_tls_key_file = \/etc\/letsencrypt\/live\/mail.sample.com\/privkey.pem<br \/>\nsmtpd_tls_session_cache_database = btree:\/var\/lib\/postfix\/smtpd_scache<\/p>\n<p># vi \/etc\/postfix\/master.cf<br \/>\n\u4e0b\u8a184\u884c\u306e\u884c\u982d\u306e\uff03\u3092\u524a\u9664<br \/>\nsmtps inet n &#8211; n &#8211; &#8211; smtpd<br \/>\n-o smtpd_tls_wrappermode=yes<br \/>\n-o smtpd_sasl_auth_enable=yes<br \/>\ntlsmgr unix &#8211; &#8211; n 300 1 tlsmgr<\/p>\n<p>\u30fbpostfix\u518d\u8d77\u52d5<br \/>\nsystemctl restart postfix<\/p>\n<p>\u203b\u30eb\u30fc\u30bf\u30fc\u3067TCP465\u756a\u3092\u30b5\u30fc\u30d0\u30fc\u306b\u901a\u3059\u3088\u3046\u306b\u3059\u308b<\/p>\n<p>\u30fbDovecot\u8a2d\u5b9a<br \/>\n# vi \/etc\/dovecot\/conf.d\/10-ssl.conf<br \/>\n\u884c\u982d\u306e\uff03\u3092\u524a\u9664<br \/>\nssl = yes<br \/>\n\u30b5\u30fc\u30d0\u30fc\u8a3c\u660e\u66f8\uff0b\u4e2d\u9593\u8a3c\u660e\u66f8\u3068\u79d8\u5bc6\u9375\u3092\u6307\u5b9a<br \/>\nssl_cert = &lt;\/etc\/letsencrypt\/live\/mail.sample.com\/fullchain.pem<br \/>\nssl_key = &lt;\/etc\/letsencrypt\/live\/mail.sample.com\/privkey.pem<\/p>\n<p>\u30fbDovecot\u518d\u8d77\u52d5<br \/>\n# systemctl restart dovecot<\/p>\n<p>\u203b\u30eb\u30fc\u30bf\u30fc\u3067\u53d7\u4fe1\u30e1\u30fc\u30eb\u304cPOP\u306e\u5834\u5408\u306fTCP995\u756a\u3092\u3001IMAP\u306e\u5834\u5408\u306fTCP993\u756a\u3092\u30b5\u30fc\u30d0\u30fc\u306b\u901a\u3059\u3088\u3046\u306b\u3059\u308b<\/p>\n<p>\u203b\u30e1\u30fc\u30eb\u30bd\u30d5\u30c8\u306e\u8a2d\u5b9a\u3067\u9001\u4fe1\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u30fb\u53d7\u4fe1\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u3068\u3082\u306b\u4e0a\u8a18\u5404\u30dd\u30fc\u30c8\u756a\u53f7\u3092\u6307\u5b9a\u3057\u3001\u300c\u30bb\u30ad\u30e5\u30ea\u30c6\u30a3\u3067\u4fdd\u8b77\u3055\u308c\u305f\u63a5\u7d9a\u300d\u3092\u9078\u629e\u3059\u308b<\/p>\n<p>\u203b\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u30b5\u30fc\u30d0\u30fc\u8a3c\u660e\u66f8\u306e\u66f4\u65b0<br \/>\nWEB\u30b5\u30fc\u30d0\u30fc\u306e\u8a3c\u660e\u66f8\u306e\u66f4\u65b0\u300ccertbot renew\u300d\u3067\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u8a3c\u660e\u66f8\u3082\u81ea\u52d5\u7684\u306b\u66f4\u65b0\u3055\u308c\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; WEB\u30b5\u30fc\u30d0\u30fc\u306e\u6697\u53f7\u5316\uff08SSL\u5316\uff09\u306b\u4f7f\u3063\u305fcertbot\u306e\u30b5\u30fc\u30d0\u30fc\u8a3c\u660e\u66f8\u3092\u5229\u7528\u3057\u3066\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\uff08Postfix+Dovecot\uff09\u306e\u901a\u4fe1\u3082\u6697\u53f7\u5316\u3057\u307e\u3059\u3002 \u203bcertbot\u3092\u4f7f\u3063\u305fWEB\u30b5\u30fc\u30d0\u30fc\u306e\u6697\u53f7\u5316\uff08SS &hellip; <a href=\"https:\/\/vicsfactory.com\/?p=203\">\u7d9a\u304d\u3092\u8aad\u3080 <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":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/vicsfactory.com\/index.php?rest_route=\/wp\/v2\/posts\/203"}],"collection":[{"href":"https:\/\/vicsfactory.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vicsfactory.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vicsfactory.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vicsfactory.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=203"}],"version-history":[{"count":4,"href":"https:\/\/vicsfactory.com\/index.php?rest_route=\/wp\/v2\/posts\/203\/revisions"}],"predecessor-version":[{"id":246,"href":"https:\/\/vicsfactory.com\/index.php?rest_route=\/wp\/v2\/posts\/203\/revisions\/246"}],"wp:attachment":[{"href":"https:\/\/vicsfactory.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=203"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vicsfactory.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=203"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vicsfactory.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=203"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}