--- dovecot-example.conf.orig 2008-03-04 05:48:12.000000000 +0000 +++ dovecot-example.conf 2008-03-05 22:49:08.554336095 +0000 @@ -12,7 +12,7 @@ # 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 -# are for configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var +# are for configure --prefix=%%PREFIX%% --sysconfdir=%%PREFIX%%/etc --localstatedir=/var # --with-ssldir=/etc/ssl # Base directory where to store runtime data. @@ -21,6 +21,7 @@ # Protocols we want to be serving: imap imaps pop3 pop3s # If you only want to use dovecot-auth, you can set this to "none". #protocols = imap imaps +protocols = %%PROTOCOLS%% # IP or host address where to listen in for connections. It's not currently # possible to specify multiple addresses. "*" listens in all IPv4 interfaces. @@ -210,6 +212,7 @@ # # #mail_location = +mail_location = mbox:~/mail/:INBOX=/var/mail/%u # If you need to set multiple mailbox locations or want to change default # namespace settings, you can do it by defining namespace sections. @@ -256,6 +259,7 @@ # used only for creating mbox dotlock files when creation fails for INBOX. # Typically this is set to "mail" to give access to /var/mail. #mail_privileged_group = +mail_privileged_group = mail # Grant access to these supplementary groups for mail processes. Typically # these are used to set up access to shared mailboxes. Note that it may be @@ -320,6 +324,7 @@ # IP address. Useful for seeing who are actually using the IMAP processes # (eg. shared mailboxes or if same uid is used for multiple accounts). #verbose_proctitle = no +verbose_proctitle = yes # Valid UID range for users, defaults to 500 and above. This is mostly # to make sure that users can't log in as daemons or other system users. @@ -333,6 +338,7 @@ # belongs to supplementary groups with non-valid GIDs, those groups are # not set. #first_valid_gid = 1 +first_valid_gid = 0 #last_valid_gid = 0 # Maximum number of running mail processes. When this limit is reached, @@ -506,19 +512,19 @@ protocol imap { # Login executable location. - #login_executable = /usr/libexec/dovecot/imap-login + #login_executable = %%PREFIX%%/libexec/dovecot/imap-login # 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 + # mail_executable = %%PREFIX%%/libexec/dovecot/rawlog %%PREFIX%%/libexec/dovecot/imap # # 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 + # mail_executable = %%PREFIX%%/libexec/dovecot/gdbhelper %%PREFIX%%/libexec/dovecot/imap # - #mail_executable = /usr/libexec/dovecot/imap + #mail_executable = %%PREFIX%%/libexec/dovecot/imap # 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 @@ -528,7 +534,7 @@ # 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 + #mail_plugin_dir = %%PREFIX%%/lib/dovecot/imap # Send IMAP capabilities in greeting message. This makes it unnecessary for # clients to request it with CAPABILITY command, so it saves one round-trip. @@ -563,6 +569,7 @@ # accept '/' suffix in mailbox names in subscriptions list. # The list is space-separated. #imap_client_workarounds = outlook-idle + imap_client_workarounds = delay-newmail outlook-idle netscape-eoh tb-extra-mailbox-sep } ## @@ -571,11 +578,11 @@ protocol pop3 { # Login executable location. - #login_executable = /usr/libexec/dovecot/pop3-login + #login_executable = %%PREFIX%%/libexec/dovecot/pop3-login # POP3 executable location. See IMAP's mail_executable above for examples # how this could be changed. - #mail_executable = /usr/libexec/dovecot/pop3 + #mail_executable = %%PREFIX%%/libexec/dovecot/pop3 # 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 @@ -621,6 +628,7 @@ # installations. # #pop3_uidl_format = + pop3_uidl_format = %08Xu%08Xv # POP3 logout format string: # %t - number of TOP commands @@ -635,7 +643,7 @@ # 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 + #mail_plugin_dir = %%PREFIX%%/lib/dovecot/pop3 # Workarounds for various client bugs: # outlook-no-nuls: @@ -646,6 +654,7 @@ # 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 } ## @@ -663,10 +672,11 @@ # 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 # Binary to use for sending mails. #sendmail_path = /usr/lib/sendmail + sendmail_path = /usr/sbin/sendmail # UNIX socket path to master authentication server to find users. #auth_socket_path = /var/run/dovecot/auth-master @@ -677,7 +687,7 @@ ## # Executable location -#auth_executable = /usr/libexec/dovecot/dovecot-auth +#auth_executable = %%PREFIX%%/libexec/dovecot/dovecot-auth # Set max. process size in megabytes. #auth_process_size = 256 @@ -783,7 +793,7 @@ #passdb passwd-file { # File contains a list of usernames, one per line - #args = /etc/dovecot.deny + #args = %%PREFIX%%/etc/dovecot.deny #deny = yes #} @@ -1021,7 +1031,7 @@ # referenced using URIs in format "proxy:". dict { - #quota = mysql:/etc/dovecot-dict-quota.conf + #quota = mysql:%%PREFIX%%/etc/dovecot-dict-quota.conf } ## @@ -1045,7 +1055,7 @@ # directory. You can also optionally give a global ACL directory path where # ACLs are applied to all users' mailboxes. The global ACL directory contains # one file for each mailbox, eg. INBOX or sub.mailbox. - #acl = vfile:/etc/dovecot-acls + #acl = vfile:%%PREFIX%%/etc/dovecot-acls # Convert plugin. If set, specifies the source storage path which is # converted to destination storage (mail_location) when the user logs in. @@ -1059,7 +1069,7 @@ # until the message can be saved within quota limits. The configuration file # is a text file where each line is in format: # Mails are first deleted in lowest -> highest priority number order - #trash = /etc/dovecot-trash.conf + #trash = %%PREFIX%%/etc/dovecot-trash.conf # Lazy expunge plugin. Currently works only with maildirs. When a user # expunges mails, the mails are moved to a mailbox in another namespace