summaryrefslogtreecommitdiffstats
path: root/dovecot/dovecot.conf
blob: 19f5ebd1f29f9d21b3cd9ecf020241d5f7d9c990 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
## Dovecot configuration file

# If you're in a hurry, see http://wiki2.dovecot.org/QuickConfiguration

# "doveconf -n" command gives a clean output of the changed settings. Use it
# instead of copy&pasting files 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  "

# Most (but not all) settings can be overridden by different protocols and/or
# source/destination IPs by placing the settings inside sections, for example:
# protocol imap { }, local 127.0.0.1 { }, remote 10.0.0.0/8 { }

protocols = imap
auth_mechanisms = plain

ssl_cert = </etc/certs/ENV_HOSTNAME/fullchain.pem
ssl_key = </etc/certs/ENV_HOSTNAME/key.pem
ssl_dh = </etc/certs/dhparam.pem

# Users defined by the user-configured password file
passdb {
    driver = passwd-file
    args = /etc/userconfig/passwd
}
userdb {
    driver = passwd-file
    args = /etc/userconfig/passwd
}


# Location for users mailboxes
#  %u - username
#  %n - user part in user@domain, same as %u if there's no domain
#  %d - domain part in user@domain, empty if there's no domain
#  %h - home directory
mail_home = /var/mail/vhost/%d/%n
mail_location = maildir:~