2008-11-24 19:44:58 -05:00
|
|
|
$OpenBSD: patch-dovecot-example_conf,v 1.44 2008/11/25 00:44:58 brad Exp $
|
|
|
|
--- dovecot-example.conf.orig Sun Nov 23 16:53:53 2008
|
|
|
|
+++ dovecot-example.conf Sun Nov 23 18:26:49 2008
|
2007-04-11 16:28:15 -04:00
|
|
|
@@ -10,13 +10,12 @@
|
2005-09-04 14:22:30 -04:00
|
|
|
# value inside quotes, eg.: key = "# char and trailing whitespace "
|
2003-07-14 19:44:28 -04:00
|
|
|
|
2006-09-18 01:04:28 -04:00
|
|
|
# Default values are shown for each setting, it's not required to uncomment
|
|
|
|
-# any of the lines. Exception to this are paths, they're just examples with
|
|
|
|
-# the real defaults being based on configure options. The paths listed here
|
2003-07-14 19:44:28 -04:00
|
|
|
-# are for configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
|
|
|
|
-# --with-ssldir=/etc/ssl
|
|
|
|
+# any of the lines.
|
|
|
|
|
2004-06-25 13:41:59 -04:00
|
|
|
+# *** NOTE *** Some values HAVE been changed for OpenBSD use.
|
|
|
|
+
|
2003-07-14 19:44:28 -04:00
|
|
|
# Base directory where to store runtime data.
|
|
|
|
-#base_dir = /var/run/dovecot/
|
|
|
|
+base_dir = /var/dovecot/
|
|
|
|
|
2006-07-15 22:43:08 -04:00
|
|
|
# Protocols we want to be serving: imap imaps pop3 pop3s
|
2006-10-09 15:26:53 -04:00
|
|
|
# If you only want to use dovecot-auth, you can set this to "none".
|
2008-08-19 22:07:04 -04:00
|
|
|
@@ -38,13 +37,13 @@
|
|
|
|
# listen = *:10100
|
|
|
|
# ..
|
|
|
|
# }
|
|
|
|
-#listen = *
|
|
|
|
+listen = *, [::]
|
|
|
|
|
|
|
|
# Disable LOGIN command and all other plaintext authentications unless
|
2006-07-15 22:43:08 -04:00
|
|
|
# SSL/TLS is used (LOGINDISABLED capability). Note that if the remote IP
|
|
|
|
# matches the local IP (ie. you're connecting from the same computer), the
|
|
|
|
# connection is considered secure and plaintext authentication is allowed.
|
|
|
|
-#disable_plaintext_auth = yes
|
|
|
|
+disable_plaintext_auth = yes
|
|
|
|
|
|
|
|
# Should all IMAP and POP3 processes be killed when Dovecot master process
|
|
|
|
# shuts down. Setting this to "no" means that Dovecot can be upgraded without
|
2008-08-19 22:07:04 -04:00
|
|
|
@@ -90,7 +89,7 @@
|
2006-06-16 17:03:44 -04:00
|
|
|
# dropping root privileges, so keep the key file unreadable by anyone but
|
|
|
|
# root. Included doc/mkcert.sh can be used to easily generate self-signed
|
|
|
|
# certificate, just make sure to update the domains in dovecot-openssl.cnf
|
|
|
|
-#ssl_cert_file = /etc/ssl/certs/dovecot.pem
|
|
|
|
+ssl_cert_file = /etc/ssl/dovecotcert.pem
|
|
|
|
#ssl_key_file = /etc/ssl/private/dovecot.pem
|
|
|
|
|
|
|
|
# If key file is password protected, give the password here. Alternatively
|
2008-11-24 19:44:58 -05:00
|
|
|
@@ -134,7 +133,7 @@
|
2003-07-14 19:44:28 -04:00
|
|
|
# which login needs to be able to connect to. The sockets are created when
|
2004-06-22 17:05:20 -04:00
|
|
|
# running as root, so you don't have to worry about permissions. Note that
|
|
|
|
# everything in this directory is deleted when Dovecot is started.
|
2003-07-14 19:44:28 -04:00
|
|
|
-#login_dir = /var/run/dovecot/login
|
|
|
|
+login_dir = /var/dovecot/login
|
|
|
|
|
|
|
|
# chroot login process to the login_dir. Only reason not to do this is if you
|
2007-04-11 16:28:15 -04:00
|
|
|
# wish to run the whole Dovecot without roots. <doc/wiki/Rootless.txt>
|
2008-11-24 19:44:58 -05:00
|
|
|
@@ -144,7 +143,7 @@
|
2007-04-11 16:28:15 -04:00
|
|
|
# and don't use it anywhere else. The user must also belong to a group where
|
2003-07-14 19:44:28 -04:00
|
|
|
# only it has access, it's used to control access for authentication process.
|
2007-04-11 16:28:15 -04:00
|
|
|
# Note that this user is NOT used to access mails. <doc/wiki/UserIds.txt>
|
2003-07-14 19:44:28 -04:00
|
|
|
-#login_user = dovecot
|
|
|
|
+login_user = _dovecot
|
|
|
|
|
|
|
|
# Set max. process size in megabytes. If you don't use
|
|
|
|
# login_process_per_connection you might need to grow this.
|
2008-11-24 19:44:58 -05:00
|
|
|
@@ -307,8 +306,9 @@
|
2008-08-19 22:07:04 -04:00
|
|
|
#mail_log_max_lines_per_sec = 10
|
|
|
|
|
|
|
|
# Don't use mmap() at all. This is required if you store indexes to shared
|
|
|
|
-# filesystems (NFS or clustered filesystem).
|
|
|
|
-#mmap_disable = no
|
|
|
|
+# filesystems (NFS or clustered filesystem) or for some operating systems
|
|
|
|
+# which use a separate cache for mmap, such as OpenBSD.
|
|
|
|
+mmap_disable = yes
|
|
|
|
|
|
|
|
# Rely on O_EXCL to work when creating dotlock files. NFS supports O_EXCL
|
|
|
|
# since version 3, so this should be safe to use nowadays by default.
|
2008-11-24 19:44:58 -05:00
|
|
|
@@ -449,7 +449,7 @@
|
2006-07-28 20:27:35 -04:00
|
|
|
# locking methods as well. Some operating systems don't allow using some of
|
|
|
|
# them simultaneously.
|
|
|
|
#mbox_read_locks = fcntl
|
|
|
|
-#mbox_write_locks = dotlock fcntl
|
|
|
|
+mbox_write_locks = fcntl
|
|
|
|
|
|
|
|
# Maximum time in seconds to wait for lock (all of them) before aborting.
|
|
|
|
#mbox_lock_timeout = 300
|
2008-11-24 19:44:58 -05:00
|
|
|
@@ -504,19 +504,19 @@
|
2005-09-04 14:22:30 -04:00
|
|
|
|
|
|
|
protocol imap {
|
|
|
|
# Login executable location.
|
|
|
|
- #login_executable = /usr/libexec/dovecot/imap-login
|
2008-08-19 22:07:04 -04:00
|
|
|
+ #login_executable = ${PREFIX}/libexec/dovecot/imap-login
|
2005-09-04 14:22:30 -04:00
|
|
|
|
2006-01-16 16:32:59 -05:00
|
|
|
# IMAP executable location. Changing this allows you to execute other
|
|
|
|
# binaries before the imap process is executed.
|
|
|
|
#
|
|
|
|
# This would write rawlogs into ~/dovecot.rawlog/ directory:
|
|
|
|
- # mail_executable = /usr/libexec/dovecot/rawlog /usr/libexec/dovecot/imap
|
2008-08-19 22:07:04 -04:00
|
|
|
+ # mail_executable = ${PREFIX}/libexec/dovecot/rawlog ${PREFIX}/libexec/dovecot/imap
|
2006-01-16 16:32:59 -05:00
|
|
|
#
|
|
|
|
# This would attach gdb into the imap process and write backtraces into
|
|
|
|
# /tmp/gdbhelper.* files:
|
|
|
|
- # mail_executable = /usr/libexec/dovecot/gdbhelper /usr/libexec/dovecot/imap
|
2008-08-19 22:07:04 -04:00
|
|
|
+ # mail_executable = ${PREFIX}/libexec/dovecot/gdbhelper ${PREFIX}/libexec/dovecot/imap
|
2006-01-16 16:32:59 -05:00
|
|
|
#
|
2005-09-04 14:22:30 -04:00
|
|
|
- #mail_executable = /usr/libexec/dovecot/imap
|
2008-08-19 22:07:04 -04:00
|
|
|
+ #mail_executable = ${PREFIX}/libexec/dovecot/imap
|
2005-09-04 14:22:30 -04:00
|
|
|
|
|
|
|
# Maximum IMAP command line length in bytes. Some clients generate very long
|
|
|
|
# command lines with huge mailboxes, so you may need to raise this if you get
|
2008-11-24 19:44:58 -05:00
|
|
|
@@ -530,7 +530,7 @@ protocol imap {
|
2007-07-16 03:09:59 -04:00
|
|
|
# Support for dynamically loadable plugins. mail_plugins is a space separated
|
|
|
|
# list of plugins to load.
|
|
|
|
#mail_plugins =
|
|
|
|
- #mail_plugin_dir = /usr/lib/dovecot/imap
|
2008-08-19 22:07:04 -04:00
|
|
|
+ #mail_plugin_dir = ${PREFIX}/lib/dovecot/imap
|
2007-07-16 03:09:59 -04:00
|
|
|
|
|
|
|
# Send IMAP capabilities in greeting message. This makes it unnecessary for
|
|
|
|
# clients to request it with CAPABILITY command, so it saves one round-trip.
|
2008-11-24 19:44:58 -05:00
|
|
|
@@ -564,7 +564,7 @@ protocol imap {
|
2006-01-19 21:04:19 -05:00
|
|
|
# but not both. Thunderbird separates these two by forcing server to
|
|
|
|
# accept '/' suffix in mailbox names in subscriptions list.
|
|
|
|
# The list is space-separated.
|
2008-08-19 22:07:04 -04:00
|
|
|
- #imap_client_workarounds =
|
|
|
|
+ imap_client_workarounds = delay-newmail netscape-eoh tb-extra-mailbox-sep
|
2006-01-19 21:04:19 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
##
|
2008-11-24 19:44:58 -05:00
|
|
|
@@ -573,11 +573,11 @@ protocol imap {
|
2005-09-04 14:22:30 -04:00
|
|
|
|
|
|
|
protocol pop3 {
|
|
|
|
# Login executable location.
|
|
|
|
- #login_executable = /usr/libexec/dovecot/pop3-login
|
2008-08-19 22:07:04 -04:00
|
|
|
+ #login_executable = ${PREFIX}/libexec/dovecot/pop3-login
|
2005-09-04 14:22:30 -04:00
|
|
|
|
2006-10-09 15:26:53 -04:00
|
|
|
# POP3 executable location. See IMAP's mail_executable above for examples
|
|
|
|
# how this could be changed.
|
2005-09-04 14:22:30 -04:00
|
|
|
- #mail_executable = /usr/libexec/dovecot/pop3
|
2008-08-19 22:07:04 -04:00
|
|
|
+ #mail_executable = ${PREFIX}/libexec/dovecot/pop3
|
2005-09-04 14:22:30 -04:00
|
|
|
|
|
|
|
# Don't try to set mails non-recent or seen with POP3 sessions. This is
|
|
|
|
# mostly intended to reduce disk I/O. With maildir it doesn't move files
|
2008-11-24 19:44:58 -05:00
|
|
|
@@ -637,7 +637,7 @@ protocol pop3 {
|
2007-07-16 03:09:59 -04:00
|
|
|
# Support for dynamically loadable plugins. mail_plugins is a space separated
|
|
|
|
# list of plugins to load.
|
|
|
|
#mail_plugins =
|
|
|
|
- #mail_plugin_dir = /usr/lib/dovecot/pop3
|
2008-08-19 22:07:04 -04:00
|
|
|
+ #mail_plugin_dir = ${PREFIX}/lib/dovecot/pop3
|
2007-07-16 03:09:59 -04:00
|
|
|
|
|
|
|
# Workarounds for various client bugs:
|
|
|
|
# outlook-no-nuls:
|
2008-11-24 19:44:58 -05:00
|
|
|
@@ -647,7 +647,7 @@ protocol pop3 {
|
2006-01-19 21:04:19 -05:00
|
|
|
# Outlook Express and Netscape Mail breaks if end of headers-line is
|
|
|
|
# missing. This option simply sends it if it's missing.
|
|
|
|
# The list is space-separated.
|
|
|
|
- #pop3_client_workarounds =
|
|
|
|
+ pop3_client_workarounds = outlook-no-nuls oe-ns-eoh
|
|
|
|
}
|
|
|
|
|
|
|
|
##
|
2008-11-24 19:44:58 -05:00
|
|
|
@@ -665,7 +665,7 @@ protocol lda {
|
2008-08-23 16:13:39 -04:00
|
|
|
# Support for dynamically loadable plugins. mail_plugins is a space separated
|
|
|
|
# list of plugins to load.
|
|
|
|
#mail_plugins =
|
|
|
|
- #mail_plugin_dir = /usr/lib/dovecot/lda
|
|
|
|
+ #mail_plugin_dir = ${PREFIX}/lib/dovecot/lda
|
|
|
|
|
|
|
|
# If user is over quota, return with temporary failure instead of
|
|
|
|
# bouncing the mail.
|
2008-11-24 19:44:58 -05:00
|
|
|
@@ -679,7 +679,7 @@ protocol lda {
|
2008-08-19 22:07:04 -04:00
|
|
|
#deliver_log_format = msgid=%m: %$
|
2007-07-16 03:09:59 -04:00
|
|
|
|
|
|
|
# Binary to use for sending mails.
|
|
|
|
- #sendmail_path = /usr/lib/sendmail
|
|
|
|
+ #sendmail_path = /usr/sbin/sendmail
|
|
|
|
|
2008-08-19 22:07:04 -04:00
|
|
|
# Human readable error message for rejection mails. Use can use variables:
|
|
|
|
# %n = CRLF, %r = reason, %s = subject, %t = recipient
|
2008-11-24 19:44:58 -05:00
|
|
|
@@ -694,7 +694,7 @@ protocol lda {
|
2003-07-14 19:44:28 -04:00
|
|
|
##
|
|
|
|
|
|
|
|
# Executable location
|
2005-09-04 14:22:30 -04:00
|
|
|
-#auth_executable = /usr/libexec/dovecot/dovecot-auth
|
2008-08-19 22:07:04 -04:00
|
|
|
+#auth_executable = ${PREFIX}/libexec/dovecot/dovecot-auth
|
2005-09-04 14:22:30 -04:00
|
|
|
|
|
|
|
# Set max. process size in megabytes.
|
|
|
|
#auth_process_size = 256
|
2008-11-24 19:44:58 -05:00
|
|
|
@@ -827,7 +827,7 @@ auth default {
|
2007-04-11 16:28:15 -04:00
|
|
|
# database (passwd usually), you can use static userdb.
|
2006-04-02 14:45:01 -04:00
|
|
|
# REMEMBER: You'll need /etc/pam.d/dovecot file created for PAM
|
2007-04-11 16:28:15 -04:00
|
|
|
# authentication to actually work. <doc/wiki/PasswordDatabase.PAM.txt>
|
2005-09-04 14:22:30 -04:00
|
|
|
- passdb pam {
|
|
|
|
+ #passdb pam {
|
2008-08-19 22:07:04 -04:00
|
|
|
# [session=yes] [setcred=yes] [failure_show_msg=yes]
|
2007-03-15 19:20:54 -04:00
|
|
|
# [cache_key=<key>] [<service name>]
|
2005-09-04 14:22:30 -04:00
|
|
|
#
|
2008-11-24 19:44:58 -05:00
|
|
|
@@ -856,7 +856,7 @@ auth default {
|
2008-08-19 22:07:04 -04:00
|
|
|
# args = session=yes %Ls
|
2006-01-16 16:32:59 -05:00
|
|
|
# args = cache_key=%u dovecot
|
2005-09-04 14:22:30 -04:00
|
|
|
#args = dovecot
|
|
|
|
- }
|
|
|
|
+ #}
|
|
|
|
|
2007-06-19 15:18:49 -04:00
|
|
|
# System users (NSS, /etc/passwd, or similiar)
|
2005-09-04 14:22:30 -04:00
|
|
|
# In many systems nowadays this uses Name Service Switch, which is
|
2008-11-24 19:44:58 -05:00
|
|
|
@@ -876,10 +876,10 @@ auth default {
|
2007-04-11 16:28:15 -04:00
|
|
|
|
|
|
|
# PAM-like authentication for OpenBSD.
|
|
|
|
# <doc/wiki/PasswordDatabase.BSDAuth.txt>
|
|
|
|
- #passdb bsdauth {
|
|
|
|
+ passdb bsdauth {
|
|
|
|
# [cache_key=<key>] - See cache_key in PAM for explanation.
|
|
|
|
#args =
|
2007-03-15 19:20:54 -04:00
|
|
|
- #}
|
2005-09-04 14:22:30 -04:00
|
|
|
+ }
|
|
|
|
|
2007-04-11 16:28:15 -04:00
|
|
|
# passwd-like file with specified location
|
|
|
|
# <doc/wiki/AuthDatabase.PasswdFile.txt>
|