116 +#ssl_cert_file = @l_prefix@/etc/dovecot/ssl/dovecot.crt |
127 +#ssl_cert_file = @l_prefix@/etc/dovecot/ssl/dovecot.crt |
117 +#ssl_key_file = @l_prefix@/etc/dovecot/ssl/dovecot.key |
128 +#ssl_key_file = @l_prefix@/etc/dovecot/ssl/dovecot.key |
118 |
129 |
119 # If key file is password protected, give the password here. Alternatively |
130 # If key file is password protected, give the password here. Alternatively |
120 # give it when starting dovecot with -p parameter. Since this file is often |
131 # give it when starting dovecot with -p parameter. Since this file is often |
121 @@ -135,7 +133,7 @@ |
132 @@ -135,7 +135,7 @@ |
122 # which login needs to be able to connect to. The sockets are created when |
133 # which login needs to be able to connect to. The sockets are created when |
123 # running as root, so you don't have to worry about permissions. Note that |
134 # running as root, so you don't have to worry about permissions. Note that |
124 # everything in this directory is deleted when Dovecot is started. |
135 # everything in this directory is deleted when Dovecot is started. |
125 -#login_dir = /var/run/dovecot/login |
136 -#login_dir = /var/run/dovecot/login |
126 +#login_dir = @l_prefix@/var/dovecot/run/login |
137 +#login_dir = @l_prefix@/var/dovecot/run/login |
127 |
138 |
128 # chroot login process to the login_dir. Only reason not to do this is if you |
139 # chroot login process to the login_dir. Only reason not to do this is if you |
129 # wish to run the whole Dovecot without roots. <doc/wiki/Rootless.txt> |
140 # wish to run the whole Dovecot without roots. <doc/wiki/Rootless.txt> |
130 @@ -145,7 +143,7 @@ |
141 @@ -145,7 +145,7 @@ |
131 # and don't use it anywhere else. The user must also belong to a group where |
142 # and don't use it anywhere else. The user must also belong to a group where |
132 # only it has access, it's used to control access for authentication process. |
143 # only it has access, it's used to control access for authentication process. |
133 # Note that this user is NOT used to access mails. <doc/wiki/UserIds.txt> |
144 # Note that this user is NOT used to access mails. <doc/wiki/UserIds.txt> |
134 -#login_user = dovecot |
145 -#login_user = dovecot |
135 +#login_user = @l_musr@ |
146 +#login_user = @l_nusr@ |
136 |
147 |
137 # Set max. process size in megabytes. If you don't use |
148 # Set max. process size in megabytes. If you don't use |
138 # login_process_per_connection you might need to grow this. |
149 # login_process_per_connection you might need to grow this. |
139 @@ -503,7 +501,7 @@ |
150 @@ -266,8 +266,8 @@ |
|
151 # System user and group used to access mails. If you use multiple, userdb |
|
152 # can override these by returning uid or gid fields. You can use either numbers |
|
153 # or names. <doc/wiki/UserIds> |
|
154 -#mail_uid = |
|
155 -#mail_gid = |
|
156 +#mail_uid = @l_rusr@ |
|
157 +#mail_gid = @l_rusr@ |
|
158 |
|
159 # Group to enable temporarily for privileged operations. Currently this is |
|
160 # used only with INBOX when either its initial creation or dotlocking fails. |
|
161 @@ -502,8 +502,12 @@ |
|
162 ## |
140 |
163 |
141 protocol imap { |
164 protocol imap { |
|
165 + # Override main log file paths |
|
166 + log_path = @l_prefix@/var/dovecot/log/imap-error.log |
|
167 + info_log_path = @l_prefix@/var/dovecot/log/imap-info.log |
|
168 + |
142 # Login executable location. |
169 # Login executable location. |
143 - #login_executable = /usr/libexec/dovecot/imap-login |
170 - #login_executable = /usr/libexec/dovecot/imap-login |
144 + #login_executable = @l_prefix@/libexec/dovecot/imap-login |
171 + #login_executable = @l_prefix@/libexec/dovecot/imap-login |
145 |
172 |
146 # IMAP executable location. Changing this allows you to execute other |
173 # IMAP executable location. Changing this allows you to execute other |
147 # binaries before the imap process is executed. |
174 # binaries before the imap process is executed. |
148 @@ -515,7 +513,7 @@ |
175 @@ -515,7 +519,7 @@ |
149 # /tmp/gdbhelper.* files: |
176 # /tmp/gdbhelper.* files: |
150 # mail_executable = /usr/libexec/dovecot/gdbhelper /usr/libexec/dovecot/imap |
177 # mail_executable = /usr/libexec/dovecot/gdbhelper /usr/libexec/dovecot/imap |
151 # |
178 # |
152 - #mail_executable = /usr/libexec/dovecot/imap |
179 - #mail_executable = /usr/libexec/dovecot/imap |
153 + #mail_executable = @l_prefix@/libexec/dovecot/imap |
180 + #mail_executable = @l_prefix@/libexec/dovecot/imap |
154 |
181 |
155 # Maximum IMAP command line length in bytes. Some clients generate very long |
182 # Maximum IMAP command line length in bytes. Some clients generate very long |
156 # command lines with huge mailboxes, so you may need to raise this if you get |
183 # command lines with huge mailboxes, so you may need to raise this if you get |
157 @@ -529,7 +527,7 @@ |
184 @@ -529,7 +533,7 @@ |
158 # Support for dynamically loadable plugins. mail_plugins is a space separated |
185 # Support for dynamically loadable plugins. mail_plugins is a space separated |
159 # list of plugins to load. |
186 # list of plugins to load. |
160 #mail_plugins = |
187 #mail_plugins = |
161 - #mail_plugin_dir = /usr/lib/dovecot/imap |
188 - #mail_plugin_dir = /usr/lib/dovecot/imap |
162 + #mail_plugin_dir = @l_prefix@/lib/dovecot/imap |
189 + #mail_plugin_dir = @l_prefix@/lib/dovecot/imap |
163 |
190 |
164 # Send IMAP capabilities in greeting message. This makes it unnecessary for |
191 # Send IMAP capabilities in greeting message. This makes it unnecessary for |
165 # clients to request it with CAPABILITY command, so it saves one round-trip. |
192 # clients to request it with CAPABILITY command, so it saves one round-trip. |
166 @@ -572,11 +570,11 @@ |
193 @@ -571,12 +575,16 @@ |
|
194 ## |
167 |
195 |
168 protocol pop3 { |
196 protocol pop3 { |
|
197 + # Override main log file paths |
|
198 + log_path = @l_prefix@/var/dovecot/log/pop3-error.log |
|
199 + info_log_path = @l_prefix@/var/dovecot/log/pop3-info.log |
|
200 + |
169 # Login executable location. |
201 # Login executable location. |
170 - #login_executable = /usr/libexec/dovecot/pop3-login |
202 - #login_executable = /usr/libexec/dovecot/pop3-login |
171 + #login_executable = @l_prefix@/libexec/dovecot/pop3-login |
203 + #login_executable = @l_prefix@/libexec/dovecot/pop3-login |
172 |
204 |
173 # POP3 executable location. See IMAP's mail_executable above for examples |
205 # POP3 executable location. See IMAP's mail_executable above for examples |
175 - #mail_executable = /usr/libexec/dovecot/pop3 |
207 - #mail_executable = /usr/libexec/dovecot/pop3 |
176 + #mail_executable = @l_prefix@/libexec/dovecot/pop3 |
208 + #mail_executable = @l_prefix@/libexec/dovecot/pop3 |
177 |
209 |
178 # Don't try to set mails non-recent or seen with POP3 sessions. This is |
210 # Don't try to set mails non-recent or seen with POP3 sessions. This is |
179 # mostly intended to reduce disk I/O. With maildir it doesn't move files |
211 # mostly intended to reduce disk I/O. With maildir it doesn't move files |
180 @@ -636,7 +634,7 @@ |
212 @@ -636,7 +644,7 @@ |
181 # Support for dynamically loadable plugins. mail_plugins is a space separated |
213 # Support for dynamically loadable plugins. mail_plugins is a space separated |
182 # list of plugins to load. |
214 # list of plugins to load. |
183 #mail_plugins = |
215 #mail_plugins = |
184 - #mail_plugin_dir = /usr/lib/dovecot/pop3 |
216 - #mail_plugin_dir = /usr/lib/dovecot/pop3 |
185 + #mail_plugin_dir = @l_prefix@/lib/dovecot/pop3 |
217 + #mail_plugin_dir = @l_prefix@/lib/dovecot/pop3 |
186 |
218 |
187 # Workarounds for various client bugs: |
219 # Workarounds for various client bugs: |
188 # outlook-no-nuls: |
220 # outlook-no-nuls: |
189 @@ -664,7 +662,7 @@ |
221 @@ -654,6 +662,10 @@ |
|
222 ## |
|
223 |
|
224 protocol lda { |
|
225 + # Override main log file paths |
|
226 + log_path = @l_prefix@/var/dovecot/log/deliver-error.log |
|
227 + info_log_path = @l_prefix@/var/dovecot/log/deliver-info.log |
|
228 + |
|
229 # Address to use when sending rejection mails. |
|
230 postmaster_address = postmaster@example.com |
|
231 |
|
232 @@ -664,7 +676,7 @@ |
190 # Support for dynamically loadable plugins. mail_plugins is a space separated |
233 # Support for dynamically loadable plugins. mail_plugins is a space separated |
191 # list of plugins to load. |
234 # list of plugins to load. |
192 #mail_plugins = |
235 #mail_plugins = |
193 - #mail_plugin_dir = /usr/lib/dovecot/lda |
236 - #mail_plugin_dir = /usr/lib/dovecot/lda |
194 + #mail_plugin_dir = @l_prefix@/lib/dovecot/lda |
237 + #mail_plugin_dir = @l_prefix@/lib/dovecot/lda |
195 |
238 |
196 # If user is over quota, return with temporary failure instead of |
239 # If user is over quota, return with temporary failure instead of |
197 # bouncing the mail. |
240 # bouncing the mail. |
198 @@ -678,7 +676,7 @@ |
241 @@ -678,7 +690,7 @@ |
199 #deliver_log_format = msgid=%m: %$ |
242 #deliver_log_format = msgid=%m: %$ |
200 |
243 |
201 # Binary to use for sending mails. |
244 # Binary to use for sending mails. |
202 - #sendmail_path = /usr/lib/sendmail |
245 - #sendmail_path = /usr/lib/sendmail |
203 + #sendmail_path = @l_prefix@/sbin/sendmail |
246 + #sendmail_path = @l_prefix@/sbin/sendmail |
204 |
247 |
205 # Subject: header to use for rejection mails. You can use the same variables |
248 # Subject: header to use for rejection mails. You can use the same variables |
206 # as for rejection_reason below. |
249 # as for rejection_reason below. |
207 @@ -689,7 +687,7 @@ |
250 @@ -689,7 +701,7 @@ |
208 #rejection_reason = Your message to <%t> was automatically rejected:%n%r |
251 #rejection_reason = Your message to <%t> was automatically rejected:%n%r |
209 |
252 |
210 # UNIX socket path to master authentication server to find users. |
253 # UNIX socket path to master authentication server to find users. |
211 - #auth_socket_path = /var/run/dovecot/auth-master |
254 - #auth_socket_path = /var/run/dovecot/auth-master |
212 + #auth_socket_path = @l_prefix@/var/dovecot/run/auth-master |
255 + #auth_socket_path = @l_prefix@/var/dovecot/run/auth-master |
213 } |
256 } |
214 |
257 |
215 ## |
258 ## |
216 @@ -697,7 +695,7 @@ |
259 @@ -697,7 +709,7 @@ |
217 ## |
260 ## |
218 |
261 |
219 # Executable location |
262 # Executable location |
220 -#auth_executable = /usr/libexec/dovecot/dovecot-auth |
263 -#auth_executable = /usr/libexec/dovecot/dovecot-auth |
221 +#auth_executable = @l_prefix@/libexec/dovecot/dovecot-auth |
264 +#auth_executable = @l_prefix@/libexec/dovecot/dovecot-auth |
222 |
265 |
223 # Set max. process size in megabytes. |
266 # Set max. process size in megabytes. |
224 #auth_process_size = 256 |
267 #auth_process_size = 256 |
225 @@ -787,7 +785,7 @@ |
268 @@ -787,7 +799,7 @@ |
226 #auth_ntlm_use_winbind = no |
269 #auth_ntlm_use_winbind = no |
227 |
270 |
228 # Path for Samba's ntlm_auth helper binary. |
271 # Path for Samba's ntlm_auth helper binary. |
229 -#auth_winbind_helper_path = /usr/bin/ntlm_auth |
272 -#auth_winbind_helper_path = /usr/bin/ntlm_auth |
230 +#auth_winbind_helper_path = @l_prefix@/bin/ntlm_auth |
273 +#auth_winbind_helper_path = @l_prefix@/bin/ntlm_auth |
231 |
274 |
232 # Number of seconds to delay before replying to failed authentications. |
275 # Number of seconds to delay before replying to failed authentications. |
233 #auth_failure_delay = 2 |
276 #auth_failure_delay = 2 |
234 @@ -820,7 +818,7 @@ |
277 @@ -820,7 +832,7 @@ |
235 |
278 |
236 #passdb passwd-file { |
279 #passdb passwd-file { |
237 # File contains a list of usernames, one per line |
280 # File contains a list of usernames, one per line |
238 - #args = /etc/dovecot.deny |
281 - #args = /etc/dovecot.deny |
239 + #args = @l_prefix@/etc/dovecot/dovecot.deny |
282 + #args = @l_prefix@/etc/dovecot/dovecot.deny |
240 #deny = yes |
283 #deny = yes |
241 #} |
284 #} |
242 |
285 |
243 @@ -903,13 +901,13 @@ |
286 @@ -903,13 +915,13 @@ |
244 # SQL database <doc/wiki/AuthDatabase.SQL.txt> |
287 # SQL database <doc/wiki/AuthDatabase.SQL.txt> |
245 #passdb sql { |
288 #passdb sql { |
246 # Path for SQL configuration file, see doc/dovecot-sql-example.conf |
289 # Path for SQL configuration file, see doc/dovecot-sql-example.conf |
247 - #args = |
290 - #args = |
248 + #args = @l_prefix@/etc/dovecot/dovecot-sql.conf |
291 + #args = @l_prefix@/etc/dovecot/dovecot-sql.conf |
270 - #args = |
313 - #args = |
271 + #args = @l_prefix@/etc/dovecot/dovecot-ldap.conf |
314 + #args = @l_prefix@/etc/dovecot/dovecot-ldap.conf |
272 #} |
315 #} |
273 |
316 |
274 # vpopmail <doc/wiki/AuthDatabase.VPopMail.txt> |
317 # vpopmail <doc/wiki/AuthDatabase.VPopMail.txt> |
275 @@ -1017,7 +1015,7 @@ |
318 @@ -993,7 +1005,7 @@ |
|
319 # authentication with BSDs internally accesses shadow files, which also |
|
320 # requires roots. Note that this user is NOT used to access mails. |
|
321 # That user is specified by userdb above. |
|
322 - user = root |
|
323 + user = @l_nusr@ |
|
324 |
|
325 # Directory where to chroot the process. Most authentication backends don't |
|
326 # work if this is set, and there's no point chrooting if auth_user is root. |
|
327 @@ -1017,7 +1029,7 @@ |
276 # Master socket provides access to userdb information. It's typically |
328 # Master socket provides access to userdb information. It's typically |
277 # used to give Dovecot's local delivery agent access to userdb so it |
329 # used to give Dovecot's local delivery agent access to userdb so it |
278 # can find mailbox locations. |
330 # can find mailbox locations. |
279 - #path = /var/run/dovecot/auth-master |
331 - #path = /var/run/dovecot/auth-master |
280 + #path = @l_prefix@/var/dovecot/run/auth-master |
332 + #path = @l_prefix@/var/dovecot/run/auth-master |
281 #mode = 0600 |
333 #mode = 0600 |
282 # Default user/group is the one who started dovecot-auth (root) |
334 # Default user/group is the one who started dovecot-auth (root) |
283 #user = |
335 #user = |
284 @@ -1027,7 +1025,7 @@ |
336 @@ -1027,7 +1039,7 @@ |
285 # The client socket is generally safe to export to everyone. Typical use |
337 # The client socket is generally safe to export to everyone. Typical use |
286 # is to export it to your SMTP server so it can do SMTP AUTH lookups |
338 # is to export it to your SMTP server so it can do SMTP AUTH lookups |
287 # using it. |
339 # using it. |
288 - #path = /var/run/dovecot/auth-client |
340 - #path = /var/run/dovecot/auth-client |
289 + #path = @l_prefix@/var/dovecot/run/auth-client |
341 + #path = @l_prefix@/var/dovecot/run/auth-client |
290 #mode = 0660 |
342 #mode = 0660 |
291 #} |
343 #} |
292 #} |
344 #} |
293 @@ -1041,7 +1039,7 @@ |
345 @@ -1041,7 +1053,7 @@ |
294 #auth external { |
346 #auth external { |
295 # socket connect { |
347 # socket connect { |
296 # master { |
348 # master { |
297 -# path = /var/run/dovecot/auth-master |
349 -# path = /var/run/dovecot/auth-master |
298 +# path = @l_prefix@/dovecot/run/auth-master |
350 +# path = @l_prefix@/dovecot/run/auth-master |
299 # } |
351 # } |
300 # } |
352 # } |
301 #} |
353 #} |
302 @@ -1057,8 +1055,8 @@ |
354 @@ -1057,8 +1069,8 @@ |
303 # referenced using URIs in format "proxy::<name>". |
355 # referenced using URIs in format "proxy::<name>". |
304 |
356 |
305 dict { |
357 dict { |
306 - #quota = mysql:/etc/dovecot-dict-quota.conf |
358 - #quota = mysql:/etc/dovecot-dict-quota.conf |
307 - #expire = db:/var/lib/dovecot/expire.db |
359 - #expire = db:/var/lib/dovecot/expire.db |
308 + #quota = mysql:@l_prefix@/etc/dovecot/dovecot-dict-quota.conf |
360 + #quota = mysql:@l_prefix@/etc/dovecot/dovecot-dict-quota.conf |
309 + #expire = db:@l_prefix@/var/dovecot/lib/expire.db |
361 + #expire = db:@l_prefix@/var/dovecot/lib/expire.db |
310 } |
362 } |
311 |
363 |
312 # Path to Berkeley DB's configuration file. See doc/dovecot-db-example.conf |
364 # Path to Berkeley DB's configuration file. See doc/dovecot-db-example.conf |
313 @@ -1109,7 +1107,7 @@ |
365 @@ -1109,7 +1121,7 @@ |
314 # one file for each mailbox, eg. INBOX or sub.mailbox. cache_secs parameter |
366 # one file for each mailbox, eg. INBOX or sub.mailbox. cache_secs parameter |
315 # specifies how many seconds to wait between stat()ing dovecot-acl file |
367 # specifies how many seconds to wait between stat()ing dovecot-acl file |
316 # to see if it changed. |
368 # to see if it changed. |
317 - #acl = vfile:/etc/dovecot-acls:cache_secs=300 |
369 - #acl = vfile:/etc/dovecot-acls:cache_secs=300 |
318 + #acl = vfile:@l_prefix@/etc/dovecot/dovecot-acls:cache_secs=300 |
370 + #acl = vfile:@l_prefix@/etc/dovecot/dovecot-acls:cache_secs=300 |
319 |
371 |
320 # Convert plugin. If set, specifies the source storage path which is |
372 # Convert plugin. If set, specifies the source storage path which is |
321 # converted to destination storage (mail_location) when the user logs in. |
373 # converted to destination storage (mail_location) when the user logs in. |
322 @@ -1128,14 +1126,14 @@ |
374 @@ -1128,14 +1140,14 @@ |
323 # until the message can be saved within quota limits. The configuration file |
375 # until the message can be saved within quota limits. The configuration file |
324 # is a text file where each line is in format: <priority> <mailbox name> |
376 # is a text file where each line is in format: <priority> <mailbox name> |
325 # Mails are first deleted in lowest -> highest priority number order |
377 # Mails are first deleted in lowest -> highest priority number order |
326 - #trash = /etc/dovecot-trash.conf |
378 - #trash = /etc/dovecot-trash.conf |
327 + #trash = @l_prefix@/etc/dovecot/dovecot-trash.conf |
379 + #trash = @l_prefix@/etc/dovecot/dovecot-trash.conf |