Using Active Directory distribution groups in Postfix

From Zarafa wiki

(Difference between revisions)
Jump to: navigation, search
m
m
Line 8: Line 8:
'''main.cf'''
'''main.cf'''
-
<code>
+
<pre>
virtual_mailbox_domains = example.com
virtual_mailbox_domains = example.com
virtual_transport = zarafa:
virtual_transport = zarafa:
virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.conf
virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.conf
virtual_alias_maps = ldap:/etc/postfix/ldap-groups.conf
virtual_alias_maps = ldap:/etc/postfix/ldap-groups.conf
-
</code>
+
</pre>
'''ldap-users.conf'''
'''ldap-users.conf'''
-
<code>
+
<pre>
server_host = ads_server_ip
server_host = ads_server_ip
search_base = ou=users,dc=example,dc=local
search_base = ou=users,dc=example,dc=local
Line 26: Line 26:
bind_dn = cn=Administrator,ou=users,dc=example,dc=local
bind_dn = cn=Administrator,ou=users,dc=example,dc=local
bind_pw = password
bind_pw = password
-
</code>
+
</pre>
'''ldap-groups.conf'''
'''ldap-groups.conf'''
-
<nowiki>
+
<pre>
server_host = ads_server_ip
server_host = ads_server_ip
search_base = ou=users,dc=example,dc=local
search_base = ou=users,dc=example,dc=local
Line 41: Line 41:
bind_dn = cn=Administrator,ou=groups,dc=example,dc=local
bind_dn = cn=Administrator,ou=groups,dc=example,dc=local
bind_pw = password
bind_pw = password
-
</nowiki>
+
</pre>
'''Master.cf'''
'''Master.cf'''
-
<nowiki>zarafa  unix  -      n      n      -      -      pipe  
+
<pre>zarafa  unix  -      n      n      -      -      pipe  
-
   flags= user=vmail argv=/usr/bin/zarafa-dagent -R ${recipient}</nowiki>
+
   flags= user=vmail argv=/usr/bin/zarafa-dagent -R ${recipient}</pre>

Revision as of 14:15, 20 January 2009

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
virtual_transport = zarafa:
virtual_mailbox_maps = ldap:/etc/postfix/ldap-users.conf
virtual_alias_maps = ldap:/etc/postfix/ldap-groups.conf

ldap-users.conf

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


ldap-groups.conf

server_host = ads_server_ip
search_base = ou=users,dc=example,dc=local
version = 3
query_filter = (&(objectclass=group)(mail=%s))
leaf_result_attribute = mail
special_result_attribute = member
bind = yes
bind_dn = cn=Administrator,ou=groups,dc=example,dc=local
bind_pw = password

Master.cf

zarafa  unix   -      n       n       -       -       pipe 
  flags= user=vmail argv=/usr/bin/zarafa-dagent -R ${recipient}
Personal tools