forked from iomarmochtar/mailman3_ldap_sync
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.ini_dist
53 lines (49 loc) · 1.89 KB
/
config.ini_dist
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
; mailman3 api auth
[mailman3]
host = localhost
port = 8001
user = restadmin
pwd = restpass
; ldap auth
[ldap]
host = 192.168.1.161
port = 389
ssl = false
bind_dn = cn=admin,dc=iomarmochtar,dc=com
bind_pwd = P@ssw0rd
[sync]
; log file for this script, put blank if you don't use
log_file = /var/log/mailman3_ldapsync.log
; default domain, will be named after the list. eg: [email protected]
default_list_domain = iomarmochtar.com
; replacing owner, subscriber and moderator email domain, leave blank if not used
replace_mail_domain = iomarmochtar.com
group_filter = (&(objectClass=group)(msExchEnableModeration=TRUE))
search_base = dc=iomarmochtar,dc=com
; group member attribute from group filter result that will be used as list subscriber
subscriber_attr = member
; <same as above but for list owner >
owner_attr = managedBy
; <same as above but for list moderator >
moderator_attr = msExchModeratedByLink
; member filter if result of subscriber or owner or moderator returned DN, this is used in AD
member_filter = (objectClass=person)
mail_attr = mail
; name of list, if there is a space character then it will be replaced by dot (.) then lower cased
group_name_attr = cn
; set this value to true for deleting the unmatch list in mailman
delete_rest_list = true
; fill this with regex pattern for exclude list deletion, if delete_rest_list is enabled (true)
exclude_list_re =
; list prefix that will be appended in front, eg: [email protected] to [email protected]
list_prefix =
; accept_nonmembers
; accept_nonmembers = ^.*@google.com$
; hooks is some python code that will be executed after sync process are done, all hooks must be put in hooks folder
; script will run method main in hook file, see the example
[hooks]
; <ALIAS> = <HOOK FILE>
;example_hook = example
; hook configuration that will be injected to hook main function as argument
;[example_hook]
;postmap_path = /usr/sbin/postmap