Using Active Directory distribution groups in Postfix

From Zarafa wiki

(Difference between revisions)
Jump to: navigation, search
(Added zarafaAccount=1 to the query.)
Line 9: Line 9:
<pre>
<pre>
-
local_recipient_maps = $virtual_alias_maps
+
virtual_mailbox_domains = example.com, example.org
-
 
+
virtual_transport = lmtp:127.0.0.1:2003
-
virtual_mailbox_domains = example.com
+
-
virtual_transport = zarafa:
+
virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.cf
virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.cf
virtual_alias_maps = ldap:/etc/postfix/ldap-groups.cf
virtual_alias_maps = ldap:/etc/postfix/ldap-groups.cf
Line 23: Line 21:
search_base = dc=example,dc=local
search_base = dc=example,dc=local
version = 3
version = 3
-
query_filter = (&(objectClass=person)(zarafaAccount=1)(mail=%s))
+
query_filter = (&(objectClass=person)(|(mail=%s)(otherMailbox=%s))
result_attribute = mail
result_attribute = mail
bind = yes
bind = yes
Line 44: Line 42:
bind_pw = password
bind_pw = password
</pre>
</pre>
-
 
-
'''Master.cf'''
 
-
 
-
<pre>zarafa  unix  -      n      n      -      -      pipe
 
-
  flags= user=vmail argv=/usr/bin/zarafa-dagent -R ${recipient}</pre>
 

Revision as of 11:27, 14 November 2012

Active Directory has the possibility to create distribution groups which can be used as an email distribution list. This article show you how to use the distribution group as a mailing list for Postfix.

To use integrate Postfix with distribution groups, you need Postfix 2.4 or higher.

To configure Postfix for the distribution groups, add/change the following options in the Postfix files.

main.cf

virtual_mailbox_domains = example.com, example.org
virtual_transport = lmtp:127.0.0.1:2003
virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.cf
virtual_alias_maps = ldap:/etc/postfix/ldap-groups.cf

ldap-users.cf

server_host = ads_server_ip
search_base = dc=example,dc=local
version = 3
query_filter = (&(objectClass=person)(|(mail=%s)(otherMailbox=%s))
result_attribute = mail
bind = yes
bind_dn = cn=Administrator,cn=Users,dc=example,dc=local
bind_pw = password


ldap-groups.cf

server_host = ads_server_ip
search_base = dc=example,dc=local
version = 3
query_filter = (&(objectClass=group)(zarafaAccount=1)(mail=%s))
leaf_result_attribute = mail
special_result_attribute = member
bind = yes
bind_dn = cn=Administrator,cn=Users,dc=example,dc=local
bind_pw = password
Personal tools