Differences between version 4 and previous revision of ActiveDirectoryMail.
Other diffs: Previous Major Revision, Previous Author, or view the Annotated Edit History
Newer page: | version 4 | Last edited on Monday, September 8, 2003 7:24:16 pm | by JamesSpooner | Revert |
Older page: | version 3 | Last edited on Monday, September 8, 2003 3:59:21 pm | by JamesSpooner | Revert |
@@ -10,20 +10,36 @@
* Samba 3.0b2
to be continued...
-! Exim Configuration
+!
! Exim Configuration
+We need to two entries to the exim config file (/etc/exim/exim.conf). The director entry (actice_directory_user) takes a (local) email address after alias expansion (remember, order is important) and decides whether the mailbox exists and if so, what transport should be used to deliver the mail. The transport entry (local_delivery_cyrus) will use cyrdeliver to pass the resolved mail to the cyrus mailbox and will return an error if the mailbox doesn't exist.
-Put this in your directors section of the exim config file.
-active_directory_user:
+! Directors Section
+
+ active_directory_user:
driver = aliasfile
search_type = ldapm
- query = "user=\"cn=james,ou=Admins
,ou=Accounts,dc=clonedm
,dc=regent,dc=ac
,dc=nz\" pass=\"Secret12\" \
- ldap://achor
.clonedm
.regent.ac
.nz:389/dc=clonedm,dc=regent
,dc=ac
,dc=nz?sAMAccountName?sub?sAMAccountName=$local_part)"
+ query = "user=\"cn=admin
,ou=Accounts,dc=domain
,dc=co
,dc=nz\" pass=\"Secret12\" \
+ ldap://adserver
.domain
.co
.nz:389/dc=domain
,dc=co
,dc=nz?sAMAccountName?sub?(
sAMAccountName=$local_part)"
expand
transport = local_delivery_cyrus
-This will search the LDAP server (in this case, achor.clonedm.regent.ac.nz) for entries that match sAMAccountName
=$local_part and
return the sAMAccountName, the sub? is important and instructs ldap to do a recursive (sublevel) search
.
+
+! Transports Section
+ local_delivery_cyrus:
+ driver = pipe
+ command
= /usr/sbin/cyrdeliver
$local_part
+ user = cyrus
+ group = mail
+
return_output
+ log_output
+ prefix =
+ suffix =
+
+
+See [LDAPNotes] for more information on LDAP Urls / Searches
.
+
-----
CategoryInteroperability