-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdovecot.conf
More file actions
84 lines (67 loc) · 2.12 KB
/
dovecot.conf
File metadata and controls
84 lines (67 loc) · 2.12 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
# a minimal, insecure dovecot.conf suitable for running with the dovecot
# official docker image as described at
# https://doc.dovecot.org/main/installation/docker.html
# https://doc.dovecot.org/2.4.1/core/config/quick.html
dovecot_config_version = 2.4.0
dovecot_storage_version = 2.4.0
# enable desired protocols:
protocols {
imap = yes
# lmtp = yes
}
# network listening
listen = *, ::
# docker configuration (copied from default dovecot docker config)
default_internal_user = vmail
default_login_user = vmail
default_internal_group = vmail
# paths
mail_home = /srv/mail/%{user}
mail_driver = sdbox
mail_path = ~/mail
# alternative examples
# mail_path = /srv/vmail/%{user|username}/Mail
# mail_inbox_path = /srv/vmail/%{user|username}
mail_uid = vmail
mail_gid = vmail
# By default first_valid_uid is 500. If your vmail user's UID is smaller,
# you need to modify this:
#first_valid_uid = uid-number-of-vmail-user
namespace inbox {
inbox = yes
separator = /
}
# Authenticate as system users:
# passdb pam {
# }
# ssl/plaintext: do not use these settings in production;
# cleartext logins should NEVER be used without ssl.
ssl = no
auth_allow_cleartext = yes
# ssl_server_cert_file = /etc/dovecot/ssl-cert.pem
# ssl_server_key_file = /etc/dovecot/ssl-key.pem
# default domain
auth_default_domain = example.com
# logging: add lots of logging
auth_verbose = yes
auth_debug = yes
log_debug = category=mail
log_path = /dev/stderr
info_log_path = /dev/stderr
debug_log_path = /dev/stderr
# authdb/userdb both use the same passwd_file in this configuration.
# See https://doc.dovecot.org/2.4.1/core/config/auth/databases/passwd_file.html
# user database by domain, default example.com
userdb passwd-file {
driver = passwd-file
auth_username_format=%{user|lower}
# passwd_file_path = /etc/dovecot/users-%{user|domain|default 'example.com'}.db
passwd_file_path = /etc/dovecot/users.db
}
# password database by domain, default example.com
passdb passwd-file {
driver = passwd-file
auth_username_format=%{user|lower}
# passwd_file_path = /etc/dovecot/users-%{user|domain|default 'example.com'}.db
passwd_file_path = /etc/dovecot/users.db
}