{"id":1469,"date":"2012-12-12T08:59:01","date_gmt":"2012-12-12T08:59:01","guid":{"rendered":"http:\/\/blog.designed79.co.uk\/?p=1469"},"modified":"2012-12-12T09:33:43","modified_gmt":"2012-12-12T09:33:43","slug":"mailing-lists-in-10-8-server","status":"publish","type":"post","link":"https:\/\/blog.designed79.co.uk\/?p=1469","title":{"rendered":"Mailing Lists in 10.8 Server"},"content":{"rendered":"<p>Apple have now self contained most of the config files for it&#8217;s services in the \/Library\/Server folders.<\/p>\n<p>To make a mailing list you need to edit files in\u00a0\/Library\/Server\/Mail\/Config\/postfix<\/p>\n<p>The file you need to edit is virtual_users<\/p>\n<p>The format is<\/p>\n<p>email@for_mailing_list.com \u00a0 \u00a0 \u00a0Localuser1,Localuser2,localuser3<\/p>\n<p>afterward you must postmap this file<\/p>\n<p>postmail\u00a0\/Library\/Server\/Mail\/Config\/postfix\/virtual_users<\/p>\n<p>If you want to use an LDAP group try this :-<\/p>\n<p>1. Use Directory Utility to add the field &#8220;EMailAddress&#8221; to the group considered, and specify the group email address in this field.<\/p>\n<p>&nbsp;<\/p>\n<p>2. Create a file \/etc\/postfix\/ldap-groups.cf or \/Library\/Server\/Mail\/Config\/postfix\/ldap-groups.cf and edit it with the following content (where server01 is obviously the name of the server):<\/p>\n<p>version = 3<\/p>\n<p>server_host = localhost<\/p>\n<p>search_base = cn=groups,dc=server01,dc=pretendco,dc=net<\/p>\n<p>query_filter = (mail=%s)<\/p>\n<p>result_attribute = memberUid<\/p>\n<p>result_format =\u00a0<a href=\"https:\/\/discussions.apple.com\/thread\/4282357?start=0&amp;tstart=0\">%u@pretendco.net<\/a><\/p>\n<p>&nbsp;<\/p>\n<p>3. Test the configuration by typing<\/p>\n<p>postmap -q (EMailAddress)@pretendco.net ldap:\/etc\/postfix\/ldap-groups.cf<\/p>\n<p>where (EmailAddress)@pretendco.net is the group email address. You should see a list of the users belonging to the group.<\/p>\n<p>&nbsp;<\/p>\n<p>4. Edit the file \/Library\/Server\/Mail\/Config\/postfix\/main.cf and put the following two lines at the end<\/p>\n<p>virtual_maps = ldap:\/etc\/postfix\/ldap-groups.cf<\/p>\n<p>virtual_alias_maps = $virtual_maps<\/p>\n<p>&nbsp;<\/p>\n<p>5. Restart postfix<\/p>\n<p>sudo postfix reload<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Apple have now self contained most of the config files for it&#8217;s services in the \/Library\/Server folders. To make a mailing list [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1469","post","type-post","status-publish","format-standard","hentry","category-info-on-tech"],"_links":{"self":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1469","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1469"}],"version-history":[{"count":0,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1469\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1469"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1469"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1469"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}