{"id":2349,"date":"2022-10-21T23:49:30","date_gmt":"2022-10-21T20:49:30","guid":{"rendered":"http:\/\/achlab.ru\/ach\/?p=2349"},"modified":"2022-10-21T23:52:07","modified_gmt":"2022-10-21T20:52:07","slug":"postfix-enabled-users-group-ad","status":"publish","type":"post","link":"http:\/\/achlab.ru\/ach\/2022\/10\/21\/postfix-enabled-users-group-ad\/","title":{"rendered":"Postfix &#8212; \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u0438\u0437 Active Directory"},"content":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u043e\u0442\u0441\u0435\u044f\u0442\u044c \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0432 \u0433\u0440\u0443\u043f\u043f\u0430\u0445 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0438 (\u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435).<br \/>\n\u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430 \u0441 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u043c\u0438 <span style=\"color: #0000ff;\">vmlist_gr.cf<\/span> \u0438 <span style=\"color: #0000ff;\">vmlist_gr_mbr.cf<\/span><br \/>\n<span style=\"color: #0000ff;\">vmlist_gr.cf:<\/span><\/p>\n<pre>...\r\nquery_filter = (&amp;(mail=%s)(sAMAccountType=268435457)(member=*))\r\nresult_attribute = distinguishedName\r\n...<\/pre>\n<p><span style=\"color: #0000ff;\">vmlist_gr_mbr.cf:<\/span><\/p>\n<pre>...\r\nquery_filter = (&amp;(sAMAccountName=*)(mail=*)(memberOf:1.2.840.113556.1.4.1941:=%s)(!(userAccountControl:1.2.840.113556.1.4.803:=2)))\r\nresult_attribute = mail\r\n...<\/pre>\n<p>\u0412 <span style=\"color: #0000ff;\">main.cf<\/span> \u043f\u0440\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u043c:<\/p>\n<pre>virtual_alias_maps = pipemap:{ldap:$config_directory\/vmlist_gr.cf, ldap:$config_directory\/vmlist_gr_mbr.cf}<\/pre>\n<p>\u0422\u0435\u0441\u0442\u0438\u0440\u0443\u0435\u043c \u0444\u0438\u043b\u044c\u0442\u0440 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439:<\/p>\n<pre>postmap -vfq \"user@mydomain.ru\" \"pipemap:{ldap:\/usr\/local\/etc\/postfix\/vmlist_gr.cf, ldap:\/usr\/local\/etc\/postfix\/vmlist_gr_mbr.cf}\"<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u0417\u0430\u0434\u0430\u0447\u0430 \u043e\u0442\u0441\u0435\u044f\u0442\u044c \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0432 \u0433\u0440\u0443\u043f\u043f\u0430\u0445 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0438 (\u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435). \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430 \u0441 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u043c\u0438 vmlist_gr.cf \u0438 vmlist_gr_mbr.cf vmlist_gr.cf: &#8230; query_filter = (&amp;(mail=%s)(sAMAccountType=268435457)(member=*)) result_attribute = distinguishedName &#8230; vmlist_gr_mbr.cf: &#8230; query_filter = (&amp;(sAMAccountName=*)(mail=*)(memberOf:1.2.840.113556.1.4.1941:=%s)(!(userAccountControl:1.2.840.113556.1.4.803:=2))) result_attribute = mail &#8230;&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[206],"tags":[304,303],"class_list":["post-2349","post","type-post","status-publish","format-standard","hentry","category-postfix","tag-group-member-block-user","tag-postfix-vmlist"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Postfix - \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u0438\u0437 Active Directory<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/achlab.ru\/ach\/2022\/10\/21\/postfix-enabled-users-group-ad\/\" \/>\n<meta property=\"og:locale\" content=\"ru_RU\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Postfix - \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u0438\u0437 Active Directory\" \/>\n<meta property=\"og:description\" content=\"\u0417\u0430\u0434\u0430\u0447\u0430 \u043e\u0442\u0441\u0435\u044f\u0442\u044c \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0432 \u0433\u0440\u0443\u043f\u043f\u0430\u0445 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0438 (\u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435). \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430 \u0441 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u043c\u0438 vmlist_gr.cf \u0438 vmlist_gr_mbr.cf vmlist_gr.cf: ... query_filter = (&amp;(mail=%s)(sAMAccountType=268435457)(member=*)) result_attribute = distinguishedName ... vmlist_gr_mbr.cf: ... query_filter = (&amp;(sAMAccountName=*)(mail=*)(memberOf:1.2.840.113556.1.4.1941:=%s)(!(userAccountControl:1.2.840.113556.1.4.803:=2))) result_attribute = mail ......\" \/>\n<meta property=\"og:url\" content=\"http:\/\/achlab.ru\/ach\/2022\/10\/21\/postfix-enabled-users-group-ad\/\" \/>\n<meta property=\"og:site_name\" content=\"achLab\" \/>\n<meta property=\"article:published_time\" content=\"2022-10-21T20:49:30+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-10-21T20:52:07+00:00\" \/>\n<meta name=\"author\" content=\"achLab\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c\" \/>\n\t<meta name=\"twitter:data1\" content=\"achLab\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u043c\u0438\u043d\u0443\u0442\u0430\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"http:\/\/achlab.ru\/ach\/2022\/10\/21\/postfix-enabled-users-group-ad\/\",\"url\":\"http:\/\/achlab.ru\/ach\/2022\/10\/21\/postfix-enabled-users-group-ad\/\",\"name\":\"Postfix - \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u0438\u0437 Active Directory\",\"isPartOf\":{\"@id\":\"http:\/\/achlab.ru\/ach\/#website\"},\"datePublished\":\"2022-10-21T20:49:30+00:00\",\"dateModified\":\"2022-10-21T20:52:07+00:00\",\"author\":{\"@id\":\"http:\/\/achlab.ru\/ach\/#\/schema\/person\/c4d1d379925d0e5405aefd60bb1e46ed\"},\"breadcrumb\":{\"@id\":\"http:\/\/achlab.ru\/ach\/2022\/10\/21\/postfix-enabled-users-group-ad\/#breadcrumb\"},\"inLanguage\":\"ru-RU\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/achlab.ru\/ach\/2022\/10\/21\/postfix-enabled-users-group-ad\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/achlab.ru\/ach\/2022\/10\/21\/postfix-enabled-users-group-ad\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/achlab.ru\/ach\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Postfix &#8212; \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u0438\u0437 Active Directory\"}]},{\"@type\":\"WebSite\",\"@id\":\"http:\/\/achlab.ru\/ach\/#website\",\"url\":\"http:\/\/achlab.ru\/ach\/\",\"name\":\"achLab\",\"description\":\"\u0437\u0430\u043c\u0435\u0442\u043a\u0438 \u043f\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u043c\u0443 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/achlab.ru\/ach\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ru-RU\"},{\"@type\":\"Person\",\"@id\":\"http:\/\/achlab.ru\/ach\/#\/schema\/person\/c4d1d379925d0e5405aefd60bb1e46ed\",\"name\":\"achLab\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ru-RU\",\"@id\":\"http:\/\/achlab.ru\/ach\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/0ec321a1b2ee8178a523788735113b575414a1c77d8e12e234fca75ba800c95e?s=96&d=wavatar&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/0ec321a1b2ee8178a523788735113b575414a1c77d8e12e234fca75ba800c95e?s=96&d=wavatar&r=g\",\"caption\":\"achLab\"},\"url\":\"http:\/\/achlab.ru\/ach\/author\/ach\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Postfix - \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u0438\u0437 Active Directory","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"http:\/\/achlab.ru\/ach\/2022\/10\/21\/postfix-enabled-users-group-ad\/","og_locale":"ru_RU","og_type":"article","og_title":"Postfix - \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u0438\u0437 Active Directory","og_description":"\u0417\u0430\u0434\u0430\u0447\u0430 \u043e\u0442\u0441\u0435\u044f\u0442\u044c \u0437\u0430\u0431\u043b\u043e\u043a\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0445 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u0439 \u0432 \u0433\u0440\u0443\u043f\u043f\u0430\u0445 \u0440\u0430\u0441\u0441\u044b\u043b\u043a\u0438 (\u0432\u043a\u043b\u044e\u0447\u0430\u044f \u0432\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435). \u0421\u043e\u0437\u0434\u0430\u0435\u043c \u0434\u0432\u0430 \u0444\u0430\u0439\u043b\u0430 \u0441 \u0444\u0438\u043b\u044c\u0442\u0440\u0430\u043c\u0438 vmlist_gr.cf \u0438 vmlist_gr_mbr.cf vmlist_gr.cf: ... query_filter = (&amp;(mail=%s)(sAMAccountType=268435457)(member=*)) result_attribute = distinguishedName ... vmlist_gr_mbr.cf: ... query_filter = (&amp;(sAMAccountName=*)(mail=*)(memberOf:1.2.840.113556.1.4.1941:=%s)(!(userAccountControl:1.2.840.113556.1.4.803:=2))) result_attribute = mail ......","og_url":"http:\/\/achlab.ru\/ach\/2022\/10\/21\/postfix-enabled-users-group-ad\/","og_site_name":"achLab","article_published_time":"2022-10-21T20:49:30+00:00","article_modified_time":"2022-10-21T20:52:07+00:00","author":"achLab","twitter_card":"summary_large_image","twitter_misc":{"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0430\u0432\u0442\u043e\u0440\u043e\u043c":"achLab","\u041f\u0440\u0438\u043c\u0435\u0440\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f \u0434\u043b\u044f \u0447\u0442\u0435\u043d\u0438\u044f":"1 \u043c\u0438\u043d\u0443\u0442\u0430"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"http:\/\/achlab.ru\/ach\/2022\/10\/21\/postfix-enabled-users-group-ad\/","url":"http:\/\/achlab.ru\/ach\/2022\/10\/21\/postfix-enabled-users-group-ad\/","name":"Postfix - \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u0438\u0437 Active Directory","isPartOf":{"@id":"http:\/\/achlab.ru\/ach\/#website"},"datePublished":"2022-10-21T20:49:30+00:00","dateModified":"2022-10-21T20:52:07+00:00","author":{"@id":"http:\/\/achlab.ru\/ach\/#\/schema\/person\/c4d1d379925d0e5405aefd60bb1e46ed"},"breadcrumb":{"@id":"http:\/\/achlab.ru\/ach\/2022\/10\/21\/postfix-enabled-users-group-ad\/#breadcrumb"},"inLanguage":"ru-RU","potentialAction":[{"@type":"ReadAction","target":["http:\/\/achlab.ru\/ach\/2022\/10\/21\/postfix-enabled-users-group-ad\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/achlab.ru\/ach\/2022\/10\/21\/postfix-enabled-users-group-ad\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/achlab.ru\/ach\/"},{"@type":"ListItem","position":2,"name":"Postfix &#8212; \u0430\u043a\u0442\u0438\u0432\u043d\u044b\u0435 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0438 \u0433\u0440\u0443\u043f\u043f\u044b \u0438\u0437 Active Directory"}]},{"@type":"WebSite","@id":"http:\/\/achlab.ru\/ach\/#website","url":"http:\/\/achlab.ru\/ach\/","name":"achLab","description":"\u0437\u0430\u043c\u0435\u0442\u043a\u0438 \u043f\u043e \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u043e\u043c\u0443 \u0430\u0434\u043c\u0438\u043d\u0438\u0441\u0442\u0440\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044e","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/achlab.ru\/ach\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ru-RU"},{"@type":"Person","@id":"http:\/\/achlab.ru\/ach\/#\/schema\/person\/c4d1d379925d0e5405aefd60bb1e46ed","name":"achLab","image":{"@type":"ImageObject","inLanguage":"ru-RU","@id":"http:\/\/achlab.ru\/ach\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/0ec321a1b2ee8178a523788735113b575414a1c77d8e12e234fca75ba800c95e?s=96&d=wavatar&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0ec321a1b2ee8178a523788735113b575414a1c77d8e12e234fca75ba800c95e?s=96&d=wavatar&r=g","caption":"achLab"},"url":"http:\/\/achlab.ru\/ach\/author\/ach\/"}]}},"_links":{"self":[{"href":"http:\/\/achlab.ru\/ach\/wp-json\/wp\/v2\/posts\/2349","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/achlab.ru\/ach\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/achlab.ru\/ach\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/achlab.ru\/ach\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/achlab.ru\/ach\/wp-json\/wp\/v2\/comments?post=2349"}],"version-history":[{"count":6,"href":"http:\/\/achlab.ru\/ach\/wp-json\/wp\/v2\/posts\/2349\/revisions"}],"predecessor-version":[{"id":2355,"href":"http:\/\/achlab.ru\/ach\/wp-json\/wp\/v2\/posts\/2349\/revisions\/2355"}],"wp:attachment":[{"href":"http:\/\/achlab.ru\/ach\/wp-json\/wp\/v2\/media?parent=2349"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/achlab.ru\/ach\/wp-json\/wp\/v2\/categories?post=2349"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/achlab.ru\/ach\/wp-json\/wp\/v2\/tags?post=2349"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}