-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
defaults.yaml
212 lines (181 loc) · 4.88 KB
/
defaults.yaml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
---
################################################################################
# Default arguments for this Puppet module.
################################################################################
# Define reusable values
aliases:
- &knockout_prefix --
# Define a reusable hash alias for deep merge options
deep_merge: &deep_merge
merge:
strategy: deep
knockout_prefix: *knockout_prefix
merge_hash_arrays: true
# Hiera lookup options
lookup_options:
dovecot::config_file_attributes:
<<: *deep_merge
dovecot::config_file_path_attributes:
<<: *deep_merge
dovecot::config_files:
<<: *deep_merge
dovecot::master_config:
<<: *deep_merge
dovecot::plugin_packages:
<<: *deep_merge
# Ensure the primary package is at least installed
dovecot::package_ensure: present
dovecot::package_name: dovecot
# Ensure the service is enabled and running
dovecot::service_enable: true
dovecot::service_ensure: running
dovecot::service_managed: true
dovecot::service_name: dovecot
# Default location and treatment of config files
dovecot::config_file_attributes:
owner: root
group: root
mode: '0644'
dovecot::config_file_path: /etc/dovecot
dovecot::config_file_path_attributes:
owner: root
group: root
mode: '0755'
dovecot::config_hash_key_knockout_prefix: *knockout_prefix
dovecot::purge_config_file_path: true
# Default (vendor) configuration
dovecot::master_config:
dict: {}
'!include': 'conf.d/*.conf'
'!include_try': local.conf
dovecot::config_files:
10-auth.conf:
auth_mechanisms: plain
'!include': auth-system.conf.ext
10-director.conf:
'service director':
'unix_listener login/director': {}
'fifo_listener login/proxy-notify': {}
'unix_listener director-userdb': {}
inet_listener: {}
'service imap-login': {}
'service pop3-login': {}
'protocol lmtp': {}
10-logging.conf:
plugin: {}
10-mail.conf:
'namespace inbox':
inbox: 'yes'
first_valid_uid: 1000
mbox_write_locks: fcntl
10-master.conf:
'service imap-login':
'inet_listener imap': {}
'inet_listener imaps': {}
'service pop3-login':
'inet_listener pop3': {}
'inet_listener pop3s': {}
'service lmtp':
'unix_listener lmtp': {}
'service imap': {}
'service pop3': {}
'service auth':
'unix_listener auth-userdb': {}
'service auth-worker': {}
'service dict':
'unix_listener dict': {}
10-ssl.conf:
ssl: required
ssl_cert: </etc/pki/dovecot/certs/dovecot.pem
ssl_key: </etc/pki/dovecot/private/dovecot.pem
15-lda.conf:
'protocol lda': {}
15-mailboxes.conf:
'namespace inbox':
'mailbox Drafts':
special_use: \Drafts
'mailbox Junk':
special_use: \Junk
'mailbox Trash':
special_use: \Trash
'mailbox Sent':
special_use: \Sent
'mailbox "Sent Messages"':
special_use: \Sent
20-imap.conf:
'protocol imap': {}
20-lmtp.conf:
'protocol lmtp': {}
20-pop3.conf:
'protocol pop3': {}
90-acl.conf:
plugin:
- {}
- {}
90-plugin.conf:
plugin: {}
90-quota.conf:
plugin:
- {}
- {}
- {}
- {}
auth-checkpassword.conf.ext:
passdb:
driver: checkpassword
args: /usr/bin/checkpassword
userdb:
driver: prefetch
auth-deny.conf.ext:
passdb:
driver: passwd-file
deny: 'yes'
args: "%{lookup('dovecot::config_file_path')}/deny-users"
auth-dict.conf.ext:
passdb:
driver: dict
args: "%{lookup('dovecot::config_file_path')}/dovecot-dict-auth.conf.ext"
userdb:
driver: dict
args: "%{lookup('dovecot::config_file_path')}/dovecot-dict-auth.conf.ext"
auth-ldap.conf.ext:
passdb:
driver: ldap
args: "%{lookup('dovecot::config_file_path')}/dovecot-ldap.conf.ext"
userdb:
driver: ldap
args: "%{lookup('dovecot::config_file_path')}/dovecot-ldap.conf.ext"
auth-master.conf.ext:
passdb:
driver: passwd-file
master: 'yes'
args: "%{lookup('dovecot::config_file_path')}/master-users"
pass: 'yes'
auth-passwdfile.conf.ext:
passdb:
driver: passwd-file
args: "scheme=CRYPT username_format=%u %{lookup('dovecot::config_file_path')}/users"
userdb:
driver: passwd-file
args: "username_format=%u %{lookup('dovecot::config_file_path')}/users"
auth-sql.conf.ext:
passdb:
driver: sql
args: "%{lookup('dovecot::config_file_path')}/dovecot-sql.conf.ext"
userdb:
driver: sql
args: "%{lookup('dovecot::config_file_path')}/dovecot-sql.conf.ext"
auth-static.conf.ext: {}
auth-system.conf.ext:
passdb:
driver: pam
userdb:
driver: passwd
auth-vpopmail.conf.ext:
passdb:
driver: vpopmail
args: ''
userdb:
driver: vpopmail
args: 'quota_template=quota_rule=*:backend=%q'
# vim: tabstop=2:softtabstop=2:shiftwidth=2:expandtab:ai