## Dovecot configuration file # "dovecot -n" command gives a clean output of the changed settings. Use it # instead of copy&pasting this file when posting to the Dovecot mailing list. # '#' character and everything after it is treated as comments. Extra spaces # and tabs are ignored. If you want to use either of these explicitly, put the # value inside quotes, eg.: key = "# char and trailing whitespace " # See http://wiki.dovecot.org/MainConfig for the available configuration # directives. See # http://hg.rename-it.nl/dovecot-1.2-managesieve/file/tip/README for # configuration of the managesieve plugin/daemon. # We server LDAP and use the deliver Local Delivery Agent protocols = imaps lda protocol imap { # Enable virtual mailboxes mail_plugins = virtual } protocol lda { # deliver wants a postmaster address to send bounces, but we've configured # Exim to only call deliver with -e, meaning exim will send the bounces. # Setting this to "" silences deliver. postmaster_address = "" # Enable sieve filters on delivery. Also enable virtual mailboxes. We won't # deliver to them, but deliver will break on the below namespace declarations # otherwise. mail_plugins = virtual sieve } # Default logging is to syslog. # # Prefix for each line written to log file. % codes are in strftime(3) # format. log_timestamp = "%Y-%m-%d %H:%M:%S " auth default { # We use plain authentication, since that works with pam (To use any other # mechanism, we must use LDAP in password lookup mode, giving dovecot access # to the user passwords, which we don't really want to do). mechanisms = plain # Use pam for authentication. The default options are fine. passdb pam { # Open a PAM session (to make pam_mkhomedir work, for example) args = session=yes } # Use the getpwnam system calls for looking up users and their homedirs. This # uses NSS (so the name "passwd" is slightly misleading). userdb passwd { # Let dovecot know that nss calls might take a while, due to remote NSS # lookups. Also, nss_ldap might break without this, due to # https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=154314 (though this # might be fixed already, not sure). args = blocking=yes } } plugin { # Sieve plugin (http://wiki.dovecot.org/LDA/Sieve) and ManageSieve service # # Location of the active script. When ManageSieve is used this is actually # a symlink pointing to the active script in the sieve storage directory. sieve=~/Mail/sieve # # The path to the directory where the personal Sieve scripts are stored. For # ManageSieve this is where the uploaded scripts are stored. sieve_dir=~/Mail/sieve.d } # Mail is stored in users' homedirs. We use the fs layout, so nesting of # mailboxes is done using normal filesystem nesting. mail_location = Maildir:~/Mail:LAYOUT=fs # Default namespace, uses mail_location above namespace private { prefix = separator = / inbox = yes } # Virtual mailboxes namespace private { prefix = virtual/ separator = / # Store virtual mailbox in a "virtual" subdirectory. We use the fs layout, so # nesting of mailboxes is done using normal filesystem nesting. location = virtual:~/Mail/virtual:LAYOUT=fs } # vim: set sts=2 sw=2 expandtab autoindent: