dovecot: Make ~/Mail/Folders the IMAP root.
[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 serve IMAP, IMAPS and use the deliver Local Delivery Agent
17 protocols = imap imaps lda
18
19 # Allow plaintext auth on non-TLS connections. We don't expose the non-secure
20 # imap port 143 to the internet, just locally for the webmail apps. This should
21 # therefore not introduce a security issue.
22 disable_plaintext_auth = no
23
24 # Our SSL private key
25 ssl_key_file = /etc/dovecot/ssl/mail.stdout.nl.key
26 # The public certificate (including the entire chain to the root)
27 ssl_cert_file = /etc/dovecot/ssl/mail.stdout.nl.crt
28
29 protocol imap {
30   # Enable virtual mailboxes
31   mail_plugins = virtual
32 }
33
34 protocol lda {
35   # deliver wants a postmaster address to send bounces, but we've configured
36   # Exim to only call deliver with -e, meaning exim will send the bounces.
37   # Setting this to "" silences deliver.
38   postmaster_address = ""
39   # Enable sieve filters on delivery. Also enable virtual mailboxes. We won't
40   # deliver to them, but deliver will break on the below namespace declarations
41   # otherwise.
42   mail_plugins = virtual sieve
43 }
44
45 # Default logging is to syslog.
46 #
47 # Prefix for each line written to log file. % codes are in strftime(3)
48 # format.
49 log_timestamp = "%Y-%m-%d %H:%M:%S "
50
51 auth default {
52   # We use plain authentication, since that works with pam (To use any other
53   # mechanism, we must use LDAP in password lookup mode, giving dovecot access
54   # to the user passwords, which we don't really want to do).
55   mechanisms = plain
56
57   # Use pam for authentication. The default options are fine. 
58   passdb pam {
59     # Open a PAM session (to make pam_mkhomedir work, for example)
60     args = session=yes
61   }
62
63   # Use the getpwnam system calls for looking up users and their homedirs. This
64   # uses NSS (so the name "passwd" is slightly misleading).
65   userdb passwd {
66     # Let dovecot know that nss calls might take a while, due to remote NSS
67     # lookups. Also, nss_ldap might break without this, due to
68     # https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=154314 (though this
69     # might be fixed already, not sure).
70     args = blocking=yes
71   }
72 }
73
74 plugin {
75   # Sieve plugin (http://wiki.dovecot.org/LDA/Sieve) and ManageSieve service
76   # 
77   # Location of the active script. When ManageSieve is used this is actually 
78   # a symlink pointing to the active script in the sieve storage directory. 
79   sieve=~/Mail/sieve
80   #
81   # The path to the directory where the personal Sieve scripts are stored. For 
82   # ManageSieve this is where the uploaded scripts are stored.
83   sieve_dir=~/Mail/sieve.d
84 }
85
86 # Mail is stored in users' homedirs. We use the fs layout, so nesting of
87 # mailboxes is done using normal filesystem nesting.
88 mail_location = Maildir:~/Mail/Folders:LAYOUT=fs
89
90 # Default namespace, uses mail_location above
91 namespace private {
92   prefix =
93   separator = /
94   inbox = yes
95 }
96
97 # Virtual mailboxes
98 namespace private {
99   prefix = virtual/
100   separator = /
101   # Store virtual mailbox in a "virtual" subdirectory. We use the fs layout, so
102   # nesting of mailboxes is done using normal filesystem nesting.
103   location = virtual:~/Mail/virtual:LAYOUT=fs
104 }
105
106 # vim: set sts=2 sw=2 expandtab autoindent: