{"id":519,"date":"2009-06-23T19:24:57","date_gmt":"2009-06-23T10:24:57","guid":{"rendered":"http:\/\/popi.jp\/wp\/?p=519"},"modified":"2009-06-23T23:38:02","modified_gmt":"2009-06-23T14:38:02","slug":"%e3%81%84%e3%82%8d%e3%81%84%e3%82%8d%e3%83%a1%e3%83%bc","status":"publish","type":"post","link":"https:\/\/popi.jp\/wp\/?p=519","title":{"rendered":"\u3044\u308d\u3044\u308d\u30e1\u30fc\u30eb\u74b0\u5883\u3092\u5909\u66f4"},"content":{"rendered":"<p>\u3044\u307e\u307e\u3067\u306fSquirrelMail\u3092\u4f7f\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u4eca\u98a8\u306eAjax\u306a\u30e1\u30fc\u30e9\u30fc\u306b\u5909\u66f4\u3057\u3066\u307f\u3088\u3046\u304b\u3068\u601d\u3063\u3066\u307f\u305f\u6b21\u7b2c\u3002<br \/>\n\u9078\u629e\u80a2\u306fRoundCube\u3068AtMail<br \/>\n(\u5b9f\u306fMySQL\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3082\u3053\u306e\u305f\u3081\u3060\u3063\u305f\u308a)<\/p>\n<p>RoundCube\u306f\u3059\u3093\u306a\u308a\u7a3c\u50cd\u3057\u305f\u306e\u3067\u3059\u304c\u3001AtMail\u306e\u65b9\u306f\u30ed\u30b0\u30a4\u30f3\u6642\u306e\u8a8d\u8a3c\u304cuser@domain\u3092\u8981\u6c42\u3059\u308b\u306e\u3067\u3059\u306d\u3002<br \/>\n\u5bb6\u3067\u3082Dovecot\u3092\u4f7f\u7528\u3057\u3066\u3044\u308b\u306e\u3067\u3059\u304c\u4f55\u3068\u306a\u304f\u5185\u90e8\u5229\u7528\u306e\u307f\u306a\u306e\u3067\u3044\u307e\u307e\u3067\/etc\/passwd\u8a8d\u8a3c\u3060\u3063\u305f\u306e\u3067\u3057\u305f\u3002<br \/>\n\u3067\u3001Dovecot\u306e\u30b5\u30a4\u30c8\u3092\u898b\u3066\u307f\u308b\u3068\u4eee\u60f3\u306e\u95a2\u4fc2\u3067@domain\u3067\u306e\u8a8d\u8a3c\u3082\u51fa\u6765\u308b\u306e\u3067\u3059\u306d\u3002<\/p>\n<p><a href=\"http:\/\/wiki.dovecot.org\/VirtualUsers\">http:\/\/wiki.dovecot.org\/VirtualUsers<br \/>\n<\/a><\/p>\n<p>\u3068\u3044\u3046\u3053\u3068\u3067\u3001\u4f7f\u3046\u5f53\u3066\u306f\u7121\u3044\u3051\u3069\u3064\u3044\u3067\u306b\u8907\u6570\u30c9\u30e1\u30a4\u30f3\u306b\u3082\u5bfe\u5fdc\u3055\u305b\u3061\u3083\u304a\u3046\u304b\u306a\u3068\u3002<br \/>\n\u307e\u305a\u3001\u3044\u3058\u3063\u305f\u7b87\u6240\u3002<\/p>\n<p>dovecot.conf:<br \/>\nauth default \u5185\u306b\u8ffd\u52a0<br \/>\n<code><br \/>\n   passdb passwd-file {<br \/>\n     args = \/etc\/postfix\/dovecot-passwd<br \/>\n   }<br \/>\n   userdb passwd-file {<br \/>\n     args = \/etc\/postfix\/dovecot-passwd<br \/>\n     args = \/etc\/postfix\/dovecot-passwd<br \/>\n   }<br \/>\n   userdb passwd-file {<br \/>\n     args = \/etc\/postfix\/dovecot-passwd<br \/>\n   }<br \/>\n   passdb pam {<br \/>\n   }<br \/>\n<\/code><\/p>\n<p>\u3053\u3093\u306a\u611f\u3058\u306b\u30a8\u30f3\u30c8\u30ea\u30fc\u3092\u4fee\u6b63or\u8ffd\u52a0\u3057\u307e\u3059\u3002<br \/>\n\u3053\u3053\u3067\u6307\u5b9a\u3057\u3066\u3044\u308b\/etc\/postfix\/dovecot-passwd\u306f\/etc\/passwd\u306e\u4ee3\u308f\u308a\u306b\u306a\u308b\u3082\u306e\u3067\u3001\u5185\u5bb9\u306f\u3053\u3093\u306a\u611f\u3058\u306b<br \/>\n<code><br \/>\n${\u30e6\u30fc\u30b6}@${\u30c9\u30e1\u30a4\u30f3}:{CRAM-MD5}xxxxxxxxxx:${UID}:${GID}::${\u30db\u30fc\u30e0\u30c7\u30a3\u30ec\u30af\u30c8\u30ea}<br \/>\n<\/code><br \/>\n\/etc\/passwd\u3068\u540c\u3058\u30d5\u30a9\u30fc\u30de\u30c3\u30c8\u3067\u30a8\u30f3\u30c8\u30ea\u3057\u3066\u3042\u3052\u308c\u3070\u304ak<br \/>\n(pam\u4ee5\u5916\u3060\u3068\u30e6\u30fc\u30b6\u306euid\u3068\u304bhome\u306e\u4f4d\u7f6e\u3082\u5206\u304b\u3089\u306a\u304f\u306a\u308b\u306e\u3067\u3053\u3093\u306a\u611f\u3058\u306b\u66f8\u304d\u307e\u3059)<\/p>\n<p>\u4e00\u756a\u6700\u5f8c\u306epam\u306f\u30a8\u30f3\u30c8\u30ea\u3055\u308c\u3066\u3044\u306a\u3044\u4eba\u7528<\/p>\n<p>\u78ba\u8a8d\u65b9\u6cd5\u306ftelnet localhost 110\u306a\u308a143\u306a\u308a\u63a5\u7d9a\u3057\u3066\u8a66\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u3068\u308a\u3042\u3048\u305a\u3053\u308c\u3067user@domain\u3067\u306e\u8a8d\u8a3c\u306f\u51fa\u304d\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<p>\u3055\u3089\u306b\u8abf\u3079\u3066\u308b\u3068\u3001\u306a\u3093\u3068dovecot\u3092\u4f7f\u3063\u3066sasl\u8a8d\u8a3c\u3082\u51fa\u304d\u308b\u306e\u3067\u3059\u306d\uff01<br \/>\n\u305d\u308c\u306a\u3089Cyrus-sasl\u306f\u8981\u3089\u306a\u304f\u306a\u308b\u3002<\/p>\n<p>\u305d\u3093\u306a\u308f\u3051\u3067\u3001\u3055\u3089\u306bdovecot\u3068\u3044\u3063\u3057\u3087\u306bpostfix\u5074\u3082\u3044\u3058\u308b\u3002<\/p>\n<p>main.cf:<br \/>\n<code>smtpd_sasl_type = dovecot<br \/>\nsmtpd_sasl_path = private\/auth-client<\/code><\/p>\n<p>dovecot.conf:<br \/>\nauth default \u5185\u306esocket\u3092\u7de8\u96c6<br \/>\n<code>socket listen {<br \/>\n     client {<br \/>\n       path = \/var\/spool\/postfix\/private\/auth-client<br \/>\n       mode = 0660<br \/>\n       user = postfix<br \/>\n       group = postdrop<br \/>\n     }<br \/>\n}<br \/>\n<\/code><br \/>\npostfix\u3068dovecot\u306f\u304a\u4e92\u3044\u306b\u4e0a\u3067\u6307\u5b9a\u3057\u305fsocket\u3092\u4f7f\u3063\u3066\u304a\u8a71\u3057\u307e\u3059\u3002<br \/>\n\u3053\u306esocket\u306fdovecot\u304c\u4f5c\u6210\u3059\u308b\u306e\u3067\u3001postfix\u304c\u8aad\u3081\u308b\u3088\u3046\u306b\u30e6\u30fc\u30b6\uff1a\u30b0\u30eb\u30fc\u30d7\u3092\u8a2d\u5b9a\u3057\u3066\u3042\u3052\u307e\u3059\u3002<br \/>\n\u5834\u6240\u306f\u304a\u4e92\u3044\u306b\u8aad\u3081\u308c\u3070\u3069\u3053\u3067\u3082\u826f\u3044\u3068\u601d\u3046\u3002<\/p>\n<p>\u3042\u3068\u306fsmtp-auth\u3067dovecot-passwd\u306b\u30a8\u30f3\u30c8\u30ea\u3057\u305f\u30e6\u30fc\u30b6\u540d\u3067\u8a8d\u8a3c\u51fa\u6765\u308c\u3070\u304ak\u3067\u3059\u3002<\/p>\n<p>\u3067\u3001\u6700\u5f8c\u306b\u30e1\u30fc\u30eb\u30e6\u30fc\u30b6\u3092\/etc\/passwd\u304b\u3089\u5206\u96e2\u3059\u308b\u3002<\/p>\n<p>\u307e\u305a\u306fpostfix\u3055\u3093\u306e\u30da\u30fc\u30b8\u3092\u8aad\u3080\u3002<br \/>\n<a href=\"http:\/\/www.postfix-jp.info\/trans-2.3\/jhtml\/VIRTUAL_README.html\">http:\/\/www.postfix-jp.info\/trans-2.3\/jhtml\/VIRTUAL_README.html<\/a><\/p>\n<p><code>virtual_mailbox_domains = ${\u8ffd\u52a0\u3059\u308b\u30c9\u30e1\u30a4\u30f3}<br \/>\nvirtual_mailbox_base = ${\u30d9\u30fc\u30b9\u306b\u306a\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u30d5\u30eb\u30d1\u30b9}<br \/>\nvirtual_mailbox_maps = dbm:\/etc\/postfix\/vmailbox<br \/>\nvirtual_minimum_uid = 500<br \/>\nvirtual_uid_maps = static:10000<br \/>\nvirtual_gid_maps = static:10000<\/code><\/p>\n<p>postfix\u304c\u30e1\u30fc\u30eb\u3092\u66f8\u304d\u8fbc\u3080\u6642\u306e\u30d5\u30eb\u30d1\u30b9\u306f<br \/>\n${virtual_mailbox_base} + ${virtual_mailbox_maps\u306e\u53f3\u5074\u30d5\u30a3\u30fc\u30eb\u30c9}<br \/>\n\u3068\u306a\u308b\u306e\u3067\u3001virtual_mailbox_maps\u306e\u4e2d\u8eab\u306f\u6700\u521d\u306b\u8a2d\u5b9a\u3057\u305f\/etc\/postfix\/dovecot-passwd\u3068\u77db\u76fe\u304c\u8d77\u304d\u306a\u3044\u3088\u3046\u306b\u3057\u307e\u3075\u3002<\/p>\n<p>\/etc\/passwd\u306b\u30a2\u30ab\u30a6\u30f3\u30c8\u304c\u30a8\u30f3\u30c8\u30ea\u3055\u308c\u306a\u3044\u306e\u3067\u3001\u30b9\u30c8\u30a2\u3055\u308c\u308b\u30e1\u30fc\u30eb\u306e\u6240\u6709\u6a29\u306fvirtual_uid_maps:virtual_gid_maps\u3068\u306a\u308a\u307e\u3059\u3002chown\u3092\u304a\u5fd8\u308c\u7121\u304f\u3002<\/p>\n<p>\u3068\u3001\u3053\u3053\u307e\u3067\u3084\u3063\u3066\u3088\u3046\u3084\u304fAtMailOpen\u3092\u8a66\u305b\u305f\u8a33\u3067\u3059\u304c\u3001\u753b\u9762\u306e\u898b\u305f\u76ee\u306f\u304d\u308c\u3044\u306a\u3093\u3060\u3051\u3069\u3001\u6240\u3005\u65e5\u672c\u8a9e\u306e\u6271\u3044\u304c\u4eca\u3072\u3068\u3064\u306a\u306e\u3067RoundCube\u306e\u65b9\u304c\u3044\u3044\u304b\u306a\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u3044\u307e\u307e\u3067\u306fSquirrelMail\u3092\u4f7f\u3063\u3066\u3044\u305f\u306e\u3067\u3059\u304c\u3001\u4eca\u98a8\u306eAjax\u306a\u30e1\u30fc\u30e9\u30fc\u306b\u5909\u66f4\u3057\u3066\u307f\u3088\u3046\u304b\u3068\u601d\u3063\u3066\u307f\u305f\u6b21\u7b2c\u3002 \u9078\u629e\u80a2\u306fRoundCube\u3068AtMail (\u5b9f\u306fMySQL\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3082\u3053\u306e\u305f\u3081\u3060\u3063\u305f\u308a) Ro [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":""},"categories":[6],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/popi.jp\/wp\/index.php?rest_route=\/wp\/v2\/posts\/519"}],"collection":[{"href":"https:\/\/popi.jp\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/popi.jp\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/popi.jp\/wp\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/popi.jp\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=519"}],"version-history":[{"count":4,"href":"https:\/\/popi.jp\/wp\/index.php?rest_route=\/wp\/v2\/posts\/519\/revisions"}],"predecessor-version":[{"id":520,"href":"https:\/\/popi.jp\/wp\/index.php?rest_route=\/wp\/v2\/posts\/519\/revisions\/520"}],"wp:attachment":[{"href":"https:\/\/popi.jp\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=519"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/popi.jp\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=519"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/popi.jp\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=519"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}