dovecot: Customize the configuration.
[matthijs/servers/drsnuggles.git] / etc / dovecot / dovecot.conf
1 ## Dovecot configuration file
2
3 # "dovecot -n" command gives a clean output of the changed settings. Use it
4 # instead of copy&pasting this file when posting to the Dovecot mailing list.
5
6 # '#' character and everything after it is treated as comments. Extra spaces
7 # and tabs are ignored. If you want to use either of these explicitly, put the
8 # value inside quotes, eg.: key = "# char and trailing whitespace  "
9
10 # See http://wiki.dovecot.org/MainConfig for the available configuration
11 # directives. See
12 # http://hg.rename-it.nl/dovecot-1.2-managesieve/file/tip/README for
13 # configuration of the managesieve plugin/daemon.
14
15
16 # We server LDAP and use the deliver Local Delivery Agent
17 protocols = imaps lda
18
19
20 protocol imap {
21   # Enable virtual mailboxes
22   mail_plugins = virtual
23 }
24
25 protocol lda {
26   # deliver wants a postmaster address to send bounces, but we've configured
27   # Exim to only call deliver with -e, meaning exim will send the bounces.
28   # Setting this to "" silences deliver.
29   postmaster_address = ""
30   # Enable sieve filters on delivery. Also enable virtual mailboxes. We won't
31   # deliver to them, but deliver will break on the below namespace declarations
32   # otherwise.
33   mail_plugins = virtual sieve
34 }
35
36 # Default logging is to syslog.
37 #
38 # Prefix for each line written to log file. % codes are in strftime(3)
39 # format.
40 log_timestamp = "%Y-%m-%d %H:%M:%S "
41
42 auth default {
43   # We use plain authentication, since that works with pam (To use any other
44   # mechanism, we must use LDAP in password lookup mode, giving dovecot access
45   # to the user passwords, which we don't really want to do).
46   mechanisms = plain
47
48   # Use pam for authentication. The default options are fine. 
49   passdb pam {
50     # Open a PAM session (to make pam_mkhomedir work, for example)
51     args = session=yes
52   }
53
54   # Use the getpwnam system calls for looking up users and their homedirs. This
55   # uses NSS (so the name "passwd" is slightly misleading).
56   userdb passwd {
57     # Let dovecot know that nss calls might take a while, due to remote NSS
58     # lookups. Also, nss_ldap might break without this, due to
59     # https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=154314 (though this
60     # might be fixed already, not sure).
61     args = blocking=yes
62   }
63 }
64
65 plugin {
66   # Sieve plugin (http://wiki.dovecot.org/LDA/Sieve) and ManageSieve service
67   # 
68   # Location of the active script. When ManageSieve is used this is actually 
69   # a symlink pointing to the active script in the sieve storage directory. 
70   sieve=~/Mail/sieve
71   #
72   # The path to the directory where the personal Sieve scripts are stored. For 
73   # ManageSieve this is where the uploaded scripts are stored.
74   sieve_dir=~/Mail/sieve.d
75 }
76
77 # Mail is stored in users' homedirs. We use the fs layout, so nesting of
78 # mailboxes is done using normal filesystem nesting.
79 mail_location = Maildir:~/Mail:LAYOUT=fs
80
81 # Default namespace, uses mail_location above
82 namespace private {
83   prefix =
84   separator = /
85   inbox = yes
86 }
87
88 # Virtual mailboxes
89 namespace private {
90   prefix = virtual/
91   separator = /
92   # Store virtual mailbox in a "virtual" subdirectory. We use the fs layout, so
93   # nesting of mailboxes is done using normal filesystem nesting.
94   location = virtual:~/Mail/virtual:LAYOUT=fs
95 }
96
97 # vim: set sts=2 sw=2 expandtab autoindent: