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