-
Notifications
You must be signed in to change notification settings - Fork 0
/
getmail-ldap.cfg
51 lines (49 loc) · 2.15 KB
/
getmail-ldap.cfg
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
[Main]
# path to getmail script (getmail or getmail6)
GetmailBinary=/usr/bin/getmail
# create this directory, usually empty when starting for the first time
GetmailDir=/home/secmail/getmail_data
# adjust this config file passed to getmail according to your needs
# the ldap script will overwrite a few variables
DefaultGetmailConfigFile=/home/secmail/getmailrc_template.cfg
# this is where the config files are stored
# that are based on above template and generated by the getmail-ldap.py
# will be recreated at each time
ConfigFileOutputDir=/home/secmail/getmail_config
[Logging]
LogFile=/var/log/getmail-ldap.log
MailServer=localhost
#separate multiple recipients by comma
MailSubject=Getmail-LDAP Error
[LDAP]
# Achtung: % = %%
# provide a valid ldap url e.g.
# LDAPServer=ldapi:///
# LDAPServer=ldapi:///var/run/slapd/ldapi
# LDAPServer=ldap://ldap01.mydomain.com
# LDAPServer=ldaps://ldap01.mydomain.com:123 (port 123)
# you may specify multiple servers separated by comma
LDAPServer=ldaps://ldap01.my.domain.com,ldaps://ldap02.my.domain.com
# SSLMode valid values:
# ssl => use ssl (needed for ldaps:// urls)
# starttls => use StartTLS protocol
# no => do not use ssl/tls
SSLMode=ssl
BindDN=uid=secmail,ou=accounts,o=default,dc=mydomain,dc=com
BindPassword=password
SearchDN=ou=accounts,o=default,dc=mydomain,dc=com
SearchScope=SUB
SearchFilter=(&(dcSubMailAddress=*)(objectClass=dcExternalMailAccount)(dcAccountStatus=active)(dcRetrieveType=*)(dcRetrieveLogin=*)(dcRetrievePassword=*))
# List of LDAP-Attributes used to determine the following variables
# 1. Name for resulting getmail configuration file (must be unique)
# 2. Type for mail collection e.g. BrokenUIDLPOP3Retriever
# 3. Mail server to collect mails from
# 4. Login for mail server
# 5. Password for mail server
# 6. Time after which mail should be retrieved again in seconds
# 7. Attribute which stores the time, when mail was last retrieved
# 8. If true, use IMAP Idle to retrieve emails
# separate by comma
RelevantAttributes=dcSubMailAddress,dcRetrieveType,dcRetrieveServer,dcRetrieveLogin,dcRetrievePassword,dcMailFetchInterval,dcLastMailRetrieval,dcIMAPIdle