{"id":484,"date":"2016-11-07T03:11:02","date_gmt":"2016-11-06T18:11:02","guid":{"rendered":"http:\/\/www.ranran.mydns.jp\/blog\/?p=484"},"modified":"2016-11-10T01:07:56","modified_gmt":"2016-11-09T16:07:56","slug":"docker-ldap-mailserverpostfix-dovecot-roundcube%e3%82%92%e6%a7%8b%e7%af%89%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"http:\/\/www.ranran.mydns.jp\/blog\/?p=484","title":{"rendered":"Docker + LDAP+ MailServer(Postfix + dovecot) + Roundcube\u3092\u69cb\u7bc9\u3059\u308b"},"content":{"rendered":"<p>\u3061\u3087\u3063\u3068\u6d41\u308c\u304b\u3089\u8131\u7dda\u3057\u307e\u3059\u304c\u3001<\/p>\n<p>Docker\u3092\u4f7f\u3063\u3066\u306e\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9\u306b\u6210\u529f\u3057\u305f\u305f\u3081<\/p>\n<p>\u305d\u306e\u5185\u5bb9\u3092\u30e1\u30e2\u3068\u3057\u3066\u6b8b\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\uff11\uff0e\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u8981\u4ef6<\/p>\n<p style=\"padding-left: 30px;\">\u73fe\u5728\u306e\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u4f7f\u3044\u65b9\u306a\u306e\u3067\u3059\u304c\u3001<\/p>\n<p style=\"padding-left: 30px;\">\u4ee5\u4e0b\u306e\uff12\u3064\u304c\u3042\u308b\u305f\u3081\u3053\u308c\u3089\u3092\u6e80\u305f\u3059\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 30px;\">\u30fb\u30b5\u30fc\u30d3\u30b9\u6bce\u306e\u30e1\u30fc\u30eb\u30a2\u30ab\u30a6\u30f3\u30c8\u7ba1\u7406<\/p>\n<p style=\"padding-left: 30px;\">\u30fb\u30d5\u30ea\u30fc\u30e1\u30fc\u30eb\u306e\u96c6\u7d04<\/p>\n<p style=\"padding-left: 30px;\">\u30b5\u30fc\u30d3\u30b9\u6bce\u306e\u30e1\u30fc\u30eb\u30a2\u30ab\u30a6\u30f3\u30c8\u3092\u7ba1\u7406\u3059\u308b\u306e\u306f\u524d\u306b\u3082\u8a00\u3063\u305f\u3088\u3046\u306bLDAPL+\u30d0\u30fc\u30c1\u30e3\u30eb\u30e1\u30fc\u30eb\u30dc\u30c3\u30af\u30b9\u3067\u884c\u3051\u308b\u306e\u3067\u3059\u304c\u3001<\/p>\n<p style=\"padding-left: 30px;\">\u30d5\u30ea\u30fc\u30e1\u30fc\u30eb\u306e\u96c6\u7d04\u306fFetchmail\u3092\u4f7f\u3063\u3066\u3044\u308b\u305f\u3081\u3053\u308c\u304c\u52d5\u4f5c\u3059\u308b\u74b0\u5883\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 30px;\">\u3067\u306f\u3067\u304d\u308b\u306e\u304b\uff1f\u3068\u3044\u3046\u3068Roundcube\u306b\u306fFetchmail\u306e\u8a2d\u5b9a\u3092Web\u4e0a\u3067\u884c\u3048\u308b\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u5b58\u5728\u3057\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 30px;\">\u3067\u3059\u304c\u3001Fetchmail\u306f\u53d6\u5f97\u3057\u305f\u30e1\u30fc\u30eb\u3092\u30ed\u30fc\u30ab\u30eb\u306eMDA\u306b\u30d5\u30a9\u30fc\u30ef\u30fc\u30c9\u3059\u308b\u3053\u3068\u3057\u304b\u3067\u304d\u306a\u3044\u306e\u3067\u304d\u307e\u305b\u3093\u3002<\/p>\n<p style=\"padding-left: 30px;\">\u3064\u307e\u308aRoundcube\u81ea\u8eab\u306b\u30d7\u30e9\u30b0\u30a4\u30f3\u304c\u5165\u3063\u305f\u72b6\u614b\u3067\u306a\u304a\u304b\u3064\u30ed\u30fc\u30ab\u30eb\u306bMDA\u304c\u5b58\u5728\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\uff12\uff0e\u8003\u3048\u3089\u308c\u308b\u69cb\u6210\u306f\uff1f<\/p>\n<p style=\"padding-left: 30px;\">\u8003\u3048\u3089\u308c\u308b\u69cb\u6210\u306f\uff12\u7a2e\u985e\u3042\u308a\u307e\u3059\u3002<\/p>\n<p style=\"padding-left: 30px;\">\uff11\u3064\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u3079\u3066\u3092\uff11\u3064\u306eContainer\u306b\u307e\u3068\u3081\u308b\u3053\u3068\u3002<\/p>\n<p><a href=\"http:\/\/www.ranran.mydns.jp\/blog\/wp-content\/uploads\/2016\/10\/f1922bb7c2f4114caab9f79b6b7631cf.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-487 size-medium\" src=\"http:\/\/www.ranran.mydns.jp\/blog\/wp-content\/uploads\/2016\/10\/f1922bb7c2f4114caab9f79b6b7631cf-450x381.png\" alt=\"%e3%83%a1%e3%83%bc%e3%83%ab%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc_%e5%8d%98%e4%b8%80%e3%82%b3%e3%83%b3%e3%83%86%e3%83%8a\" width=\"450\" height=\"381\" srcset=\"http:\/\/www.ranran.mydns.jp\/blog\/wp-content\/uploads\/2016\/10\/f1922bb7c2f4114caab9f79b6b7631cf-450x381.png 450w, http:\/\/www.ranran.mydns.jp\/blog\/wp-content\/uploads\/2016\/10\/f1922bb7c2f4114caab9f79b6b7631cf-768x650.png 768w, http:\/\/www.ranran.mydns.jp\/blog\/wp-content\/uploads\/2016\/10\/f1922bb7c2f4114caab9f79b6b7631cf.png 800w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a><\/p>\n<p style=\"padding-left: 30px;\">\u3082\u3046\uff11\u3064\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u8ee2\u9001\u7528\u306e\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3057\u3066\u30e1\u30a4\u30f3\u306e\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u306b\u30e1\u30fc\u30eb\u3092\u8ee2\u9001\u3059\u308b\u3053\u3068\u3002<\/p>\n<p><a href=\"http:\/\/www.ranran.mydns.jp\/blog\/wp-content\/uploads\/2016\/10\/751c67266e19bbe0bddffd43988522de.png\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-488 size-medium\" src=\"http:\/\/www.ranran.mydns.jp\/blog\/wp-content\/uploads\/2016\/10\/751c67266e19bbe0bddffd43988522de-450x222.png\" alt=\"%e3%83%a1%e3%83%bc%e3%83%ab%e3%82%b5%e3%83%bc%e3%83%90%e3%83%bc_%e5%88%86%e9%9b%a2%e5%9e%8b\" width=\"450\" height=\"222\" srcset=\"http:\/\/www.ranran.mydns.jp\/blog\/wp-content\/uploads\/2016\/10\/751c67266e19bbe0bddffd43988522de-450x222.png 450w, http:\/\/www.ranran.mydns.jp\/blog\/wp-content\/uploads\/2016\/10\/751c67266e19bbe0bddffd43988522de-768x380.png 768w, http:\/\/www.ranran.mydns.jp\/blog\/wp-content\/uploads\/2016\/10\/751c67266e19bbe0bddffd43988522de-1024x506.png 1024w, http:\/\/www.ranran.mydns.jp\/blog\/wp-content\/uploads\/2016\/10\/751c67266e19bbe0bddffd43988522de.png 1370w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a><\/p>\n<p>&nbsp;<\/p>\n<p style=\"padding-left: 30px;\">\u4eca\u56de\u306f\u3069\u3046\u3057\u3066\u3082\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u3068Roundcube\u306f\u5225\u306b\u69cb\u7bc9\u3057\u305f\u304b\u3063\u305f\u305f\u3081\u5f8c\u8005\u3067\u69cb\u7bc9\u3092\u884c\u3044\u307e\u3057\u305f\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\uff13\uff0e\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u3092\u69cb\u7bc9\u3059\u308b<\/p>\n<p style=\"padding-left: 30px;\">\u3053\u308c\u3089\u306eContaner\u306b\u3064\u3044\u3066\u306f\u8981\u4ef6\u3092\u6e80\u305f\u3059\u3082\u306e\u304c\u306a\u304b\u3063\u305f\u305f\u3081<\/p>\n<p style=\"padding-left: 30px;\">DockerHub\u4e0a\u306e\u3082\u306e\u3092\u6539\u9020\u3059\u308b\u5f62\u3067\u81ea\u5206\u3067\u4f5c\u308a\u307e\u3057\u305f\u3002<\/p>\n<p style=\"padding-left: 30px;\">GitHub\u306b\u6319\u3052\u3066\u307e\u3059\u306e\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>&nbsp;<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n\/\/ \u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\r\n$ git clone https:\/\/github.com\/gittrname\/mailserver-ldap.git\r\n\/\/ Roundcube + Fetchmail\u30b5\u30fc\u30d0\u30fc\u306e\u30c1\u30a7\u30c3\u30af\u30a2\u30a6\u30c8\r\n$ git clone https:\/\/github.com\/gittrname\/roundcube-fetchmail.git\r\n<\/pre>\n<p>\u30fbdocker-compose.yml<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nversion: '2'\r\nservices:  \r\n  mail:  \r\n    build: mailserver-ldap  \r\n    ports:  \r\n      - &quot;25:25&quot;  \r\n      - &quot;465:465&quot;  \r\n      - &quot;587:587&quot;  \r\n      - &quot;110:110&quot; \r\n      - &quot;143:143&quot;  \r\n      - &quot;995:995&quot;  \r\n      - &quot;993:993&quot;  \r\n    links:  \r\n      - ldap  \r\n    extra_hosts:  \r\n      - &quot;mail.example.com:127.0.0.1&quot;  \r\n    environment:  \r\n      - &quot;LDAP_SERVER=ldap&quot;  \r\n      - &quot;DOMAIN=example.com&quot;  \r\n      - &quot;HOSTNAME=mail.example.com&quot; \r\n      - &quot;LDAP_BASE=ou=People,dc=example,dc=com&quot;  \r\n      - &quot;LDAP_USER_FIELD=uid&quot;  \r\n  roundcube:\r\n    build: roundcube-fetchmail\r\n    ports:\r\n      - &quot;80:80&quot;\r\n    links:\r\n      - ldap\r\n      - mail\r\n    extra_hosts:\r\n      - &quot;fetch.example.com:127.0.0.1&quot;\r\n    environment:\r\n      - &quot;ROUNDCUBE_DEFAULT_HOST=mail&quot;\r\n      - &quot;ROUNDCUBE_SMTP_SERVER=mail&quot;\r\n      - &quot;ROUNDCUBE_USERNAME_DOMAIN=example.com&quot;\r\n      - &quot;HOSTNAME=fetchmail.example.com&quot;\r\n  ldap:  \r\n    image: sharaku\/ldap  \r\n    ports:  \r\n      - &quot;8080:80&quot;  \r\n    environment:  \r\n      - &quot;LDAP_DOMAIN=example.com&quot;  \r\n      - &quot;LDAP_ADMIN_PWD=password&quot;  \r\n      - &quot;LDAP_ORGANISATION=LDAP for docker.&quot;\r\n\r\n<\/pre>\n<p>&nbsp;<\/p>\n<p style=\"padding-left: 30px;\">\u203b Roundcube\u3068LdapAdmin\u306e\u30dd\u30fc\u30c8\u304c\u88ab\u3089\u306a\u3044\u3088\u3046\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p style=\"padding-left: 30px;\">\u5f8c\u306fLdapAdmin\u4e0a\u3067\u30e6\u30fc\u30b6\u30fc\u3092\u4f5c\u6210\u3059\u308c\u3070\u30e1\u30fc\u30eb\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u4f5c\u6210\u306f\u5b8c\u4e86\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>\u5b9a\u671f\u7684\u306a\u30e1\u30fc\u30eb\u306e\u53d6\u5f97\u306f\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u5f8c\u300c\u8a2d\u5b9a\u300d\u21d2\u300cFetchmail]\u3067\u8a2d\u5b9a\u3057\u307e\u3059\u3002<\/p>\n<p>\u53d6\u5f97\u5148\u306e\u30c9\u30e1\u30a4\u30f3\u3001\u30e6\u30fc\u30b6\u30fc\u3001\u30d1\u30b9\u30ef\u30fc\u30c9\u3092\u8a2d\u5b9a\u3059\u308b\u3068\uff11\uff15\u5206\u9593\u9694\u3067\u30e1\u30fc\u30eb\u3092\u53d6\u5f97\u3057\u3001<\/p>\n<p>\u30ed\u30b0\u30a4\u30f3\u30e6\u30fc\u30b6\u30fc\uff20\u30c9\u30e1\u30a4\u30f3\u306b\u30e1\u30fc\u30eb\u3092\u8ee2\u9001\u3057\u307e\u3059\u3002<\/p>\n<p>&nbsp;<\/p>\n<p>\u3061\u3087\u3063\u3068\u30c7\u30fc\u30bf\u306e\u6c38\u7d9a\u5316\u306b\u591a\u5c11\u306e\u4e0d\u5b89\u304c\u3042\u308a\u307e\u3059\u304c<\/p>\n<p>\u4e00\u5fdc\u3001\u3084\u308a\u305f\u3044\u3053\u3068\u306f\u3067\u304d\u305f\u306e\u3067\u516c\u958b\u3057\u3066\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3061\u3087\u3063\u3068\u6d41\u308c\u304b\u3089\u8131\u7dda\u3057\u307e\u3059\u304c\u3001 Docker\u3092\u4f7f\u3063\u3066\u306e\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u69cb\u7bc9\u306b\u6210\u529f\u3057\u305f\u305f\u3081 \u305d\u306e\u5185\u5bb9\u3092\u30e1\u30e2\u3068\u3057\u3066\u6b8b\u3057\u307e\u3059\u3002 &nbsp; \uff11\uff0e\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u8981\u4ef6 \u73fe\u5728\u306e\u30e1\u30fc\u30eb\u30b5\u30fc\u30d0\u30fc\u306e\u4f7f\u3044\u65b9\u306a\u306e\u3067\u3059\u304c\u3001 \u4ee5\u4e0b\u306e\uff12\u3064\u304c\u3042\u308b\u305f [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[36,38,30,27,41,31],"tags":[],"class_list":["post-484","post","type-post","status-publish","format-standard","hentry","category-docker","category-linux","category-oss","category-postfix","category-roundcube","category-31"],"_links":{"self":[{"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/484","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=484"}],"version-history":[{"count":8,"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/484\/revisions"}],"predecessor-version":[{"id":496,"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=\/wp\/v2\/posts\/484\/revisions\/496"}],"wp:attachment":[{"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=484"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=484"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.ranran.mydns.jp\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=484"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}