{"id":39,"date":"2008-05-13T02:07:55","date_gmt":"2008-05-12T17:07:55","guid":{"rendered":"http:\/\/www.mozilla.gr.jp\/~shimono\/blog\/?p=39"},"modified":"2008-05-22T19:01:25","modified_gmt":"2008-05-22T10:01:25","slug":"postfix-ldap-debian-etch","status":"publish","type":"post","link":"https:\/\/blog.himor.in\/?p=39","title":{"rendered":"postfix-ldap @ debian etch"},"content":{"rendered":"<p>\u67d0\u6240\u306e\u305f\u3081\u306bldap\u306b\u30a2\u30ab\u30a6\u30f3\u30c8\u60c5\u5831\u3092\u5165\u308c\u305fpostfix\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3002\u8ee2\u9001\u60c5\u5831\u306a\u3069\u3082\u5168\u90e8ldap\u306b\u5165\u308c\u305f\u3044\u306a\u3041\u3001\u3068\u3002<\/p>\n<p>debian etch\u306a\u306e\u3067\u3001\u3068\u308a\u3042\u3048\u305a\u3001<\/p>\n<blockquote><p>apt-get install postfix postfix-ldap<\/p><\/blockquote>\n<p>\u3067\u30bd\u30d5\u30c8\u3092\u5165\u308c\u3066\u3001<a href=\"http:\/\/ldapadmin.sourceforge.net\/docs\/postfix.schema\" target=\"_blank\">postfix.schema<\/a>\u3092\/etc\/ldap\/schema\u306b\u5165\u308c\u3066\u3001slapd.conf\u306binclude\u3092\u8ffd\u52a0\u3002main.cf\u306f<\/p>\n<blockquote><p>alias_maps: ldap:\/etc\/postfix\/ldap-aliases.cf<\/p><\/blockquote>\n<p>\u3092\u8ffd\u52a0\u3002(\u3068\u3044\u3046\u304b\u3001\u65e2\u5b58\u306ealias_maps\u306b\u8ffd\u52a0\u3001\u304b\u3002) \u4e2d\u8eab\u306f\u3001ldap\u30b5\u30fc\u30d0\u306flocalhost\u306a\u306e\u3067\u3001\u3068\u308a\u3042\u3048\u305atls\u306f\u7121\u3057\u306b\u3057\u3066<\/p>\n<blockquote><p>server_host = localhost<br \/>\nsearch_base = dc=example,dc=net<br \/>\nquery_filter = (&amp;(objectClass=mailUser)(uid=%s))<br \/>\nresult_attribute = maildrop<\/p><\/blockquote>\n<p>\u3068\u3059\u308b\u3002(ldif\u3067\u306fuid\u3092\u30e6\u30fc\u30b6\u540d\u3068\u3057\u3066\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u3002)ldap\u306e\u65b9\u306f\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u3092ldapmodify\u3067\u5909\u66f4\u3067\u3001\u8ffd\u52a0\u3059\u308b\u306e\u306f\u3001<\/p>\n<blockquote><p>mailDrop = account<br \/>\nmail = account@example.net<br \/>\nobjectClass = mailUser<\/p><\/blockquote>\n<p>\u3068\u304b\u3002objectClass\u306f\u6700\u5f8c\u306b\u8ffd\u52a0\u3057\u306a\u3044\u3068\u3001schema\u306eMUST\u30c1\u30a7\u30c3\u30af\u3067\u30a8\u30e9\u30fc\u306b\u306a\u308b\u306e\u3067\u6ce8\u610f\u3002mail\u306f\u3044\u3089\u306a\u3044\u6c17\u3082\u3059\u308b\u3051\u3069\u3001schema\u3067MUST\u306a\u306e\u3067\u3002\u3002\u8907\u6570\u306e\u3068\u3053\u308d\u306b\u30e1\u30fc\u30eb\u3092\u843d\u3068\u3057\u305f\u3044\u3068\u304d\u306f\u3001mailDrop\u3092\u8907\u6570\u5165\u308c\u308b\u3002<\/p>\n<p>\u5165\u308c\u305f\u3089\u3001<\/p>\n<blockquote><p>postmap -q account ldap:\/etc\/postfix\/ldap-aliases.cf<\/p><\/blockquote>\n<p>\u3067\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3002\u8a2d\u5b9a\u3057\u305fmailDrop\u306e\u5185\u5bb9\u304c\u3001\u30ab\u30f3\u30de\u533a\u5207\u308a\u3067\u8868\u793a\u3055\u308c\u308c\u3070ok\u3002@\u7121\u3057\u306e\u3082\u306e\u306f\u30ed\u30fc\u30ab\u30eb\u306e\u30e1\u30fc\u30eb\u30b9\u30d7\u30fc\u30eb\u306b\u3001@\u304c\u3042\u308b\u306e\u306f\u8ee2\u9001\u306b\u306a\u308b\u3001\u304b\u306a?<\/p>\n<p>[\u4fee\u6b63@2008\/05\/22]<\/p>\n<p>ldap-aliases.cf\u306equery_filter\u304c\u9593\u9055\u3063\u3066\u3044\u305f\u306e\u3067\u8a02\u6b63\u3002%s\u304c\u691c\u7d22\u6587\u5b57\u5217\u306b\u7f6e\u63db\u3055\u308c\u3066\u30af\u30a8\u30ea\u304cldap\u306b\u6295\u3052\u3089\u308c\u308b\u306e\u3067\u3001uid=%s\u306a\u3069\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u540d\u3092\u5f15\u3051\u308b\u691c\u7d22\u6761\u4ef6\u3067\u306a\u3044\u3068\u52d5\u304b\u306a\u3044\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u67d0\u6240\u306e\u305f\u3081\u306bldap\u306b\u30a2\u30ab\u30a6\u30f3\u30c8\u60c5\u5831\u3092\u5165\u308c\u305fpostfix\u306e\u30bb\u30c3\u30c8\u30a2\u30c3\u30d7\u3002\u8ee2\u9001\u60c5\u5831\u306a\u3069\u3082\u5168\u90e8ldap\u306b\u5165\u308c\u305f\u3044\u306a\u3041\u3001\u3068\u3002 debian etch\u306a\u306e\u3067\u3001\u3068\u308a\u3042\u3048\u305a\u3001 apt-get install postfix postfix-ldap \u3067\u30bd\u30d5\u30c8\u3092\u5165\u308c\u3066\u3001postfix.schema\u3092\/etc\/ldap\/schema\u306b\u5165\u308c\u3066\u3001slapd.conf\u306binclude\u3092\u8ffd\u52a0\u3002main.cf\u306f alias_maps: ldap:\/etc\/postfix\/ldap-aliases.cf \u3092\u8ffd\u52a0\u3002(\u3068\u3044\u3046\u304b\u3001\u65e2\u5b58\u306ealias_maps\u306b\u8ffd\u52a0\u3001\u304b\u3002) \u4e2d\u8eab\u306f\u3001ldap\u30b5\u30fc\u30d0\u306flocalhost\u306a\u306e\u3067\u3001\u3068\u308a\u3042\u3048\u305atls\u306f\u7121\u3057\u306b\u3057\u3066 server_host = localhost search_base = dc=example,dc=net query_filter = (&amp;(objectClass=mailUser)(uid=%s)) result_attribute = maildrop \u3068\u3059\u308b\u3002(ldif\u3067\u306fuid\u3092\u30e6\u30fc\u30b6\u540d\u3068\u3057\u3066\u5b9a\u7fa9\u3057\u3066\u3044\u308b\u3002)ldap\u306e\u65b9\u306f\u3001\u30a2\u30ab\u30a6\u30f3\u30c8\u3092ldapmodify\u3067\u5909\u66f4\u3067\u3001\u8ffd\u52a0\u3059\u308b\u306e\u306f\u3001 mailDrop = account mail = account@example.net objectClass = mailUser \u3068\u304b\u3002objectClass\u306f\u6700\u5f8c\u306b\u8ffd\u52a0\u3057\u306a\u3044\u3068\u3001schema\u306eMUST\u30c1\u30a7\u30c3\u30af\u3067\u30a8\u30e9\u30fc\u306b\u306a\u308b\u306e\u3067\u6ce8\u610f\u3002mail\u306f\u3044\u3089\u306a\u3044\u6c17\u3082\u3059\u308b\u3051\u3069\u3001schema\u3067MUST\u306a\u306e\u3067\u3002\u3002\u8907\u6570\u306e\u3068\u3053\u308d\u306b\u30e1\u30fc\u30eb\u3092\u843d\u3068\u3057\u305f\u3044\u3068\u304d\u306f\u3001mailDrop\u3092\u8907\u6570\u5165\u308c\u308b\u3002 \u5165\u308c\u305f\u3089\u3001 postmap -q account ldap:\/etc\/postfix\/ldap-aliases.cf \u3067\u30c1\u30a7\u30c3\u30af\u3059\u308b\u3002\u8a2d\u5b9a\u3057\u305fmailDrop\u306e\u5185\u5bb9\u304c\u3001\u30ab\u30f3\u30de\u533a\u5207\u308a\u3067\u8868\u793a\u3055\u308c\u308c\u3070ok\u3002@\u7121\u3057\u306e\u3082\u306e\u306f\u30ed\u30fc\u30ab\u30eb\u306e\u30e1\u30fc\u30eb\u30b9\u30d7\u30fc\u30eb\u306b\u3001@\u304c\u3042\u308b\u306e\u306f\u8ee2\u9001\u306b\u306a\u308b\u3001\u304b\u306a? [\u4fee\u6b63@2008\/05\/22] ldap-aliases.cf\u306equery_filter\u304c\u9593\u9055\u3063\u3066\u3044\u305f\u306e\u3067\u8a02\u6b63\u3002%s\u304c\u691c\u7d22\u6587\u5b57\u5217\u306b\u7f6e\u63db\u3055\u308c\u3066\u30af\u30a8\u30ea\u304cldap\u306b\u6295\u3052\u3089\u308c\u308b\u306e\u3067\u3001uid=%s\u306a\u3069\u306e\u30a2\u30ab\u30a6\u30f3\u30c8\u540d\u3092\u5f15\u3051\u308b\u691c\u7d22\u6761\u4ef6\u3067\u306a\u3044\u3068\u52d5\u304b\u306a\u3044\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[4,16,14],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/posts\/39"}],"collection":[{"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.himor.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=39"}],"version-history":[{"count":0,"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/posts\/39\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.himor.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=39"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.himor.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=39"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.himor.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=39"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}