-
Notifications
You must be signed in to change notification settings - Fork 12
/
dovecot.conf
117 lines (117 loc) · 2.58 KB
/
dovecot.conf
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
auth_default_realm = example.tld
auth_mechanisms = plain login
disable_plaintext_auth = yes
first_valid_uid = 5000
last_valid_uid = 5000
log_path = /var/log/dovecot.log
log_timestamp = "%Y-%m-%d %H:%M:%S"
login_greeting = "exampleMail IMAP/POP3 Server"
mail_access_groups = vmail
mail_uid = 5000
mail_gid = 5000
mail_location = maildir:/var/vmail/%d/%n/Maildir
namespace inbox {
inbox = yes
location =
list = yes
prefix =
mailbox Borradores {
special_use = \Drafts
auto = subscribe
}
mailbox Junk {
special_use = \Junk
auto = subscribe
}
mailbox Enviados {
special_use = \Sent
auto = subscribe
}
mailbox Papelera {
special_use = \Trash
auto = subscribe
}
mailbox Archivos {
special_use = \Archive
auto = subscribe
}
}
ssl_min_protocol = TLSv1.2
ssl = required
ssl_cert = </etc/ssl/certs/exampleMail.crt
ssl_key = </etc/ssl/private/exampleMail.key
ssl_cipher_list = AES128+EECDH:AES128+EDH
ssl_prefer_server_ciphers = yes
ssl_dh = </etc/ssl/dh2048.pem
verbose_ssl = no
protocols = imap pop3 lmtp
service lmtp {
unix_listener /var/spool/postfix/private/dovecot-lmtp {
user = postfix
group = postfix
mode = 0660
}
user = vmail
}
service imap-login {
inet_listener imaps {
address = *
port = 993
}
}
service pop3-login {
inet_listener pop3s {
address = *
port = 995
}
}
service auth {
unix_listener /var/spool/postfix/private/auth {
user = postfix
group = postfix
mode = 0660
}
unix_listener auth-master {
user = vmail
group = vmail
mode = 0660
}
unix_listener auth-userdb {
user = vmail
group = vmail
mode = 0660
}
}
service quota-warning {
executable = script /usr/local/bin/quota-warning
unix_listener quota-warning {
user = vmail
}
}
userdb {
args = /etc/dovecot/dovecot-ldap.conf
driver = ldap
}
passdb {
args = /etc/dovecot/dovecot-ldap.conf
driver = ldap
}
protocol lmtp {
mail_plugins = quota
}
protocol lda {
mail_plugins = quota
}
protocol imap {
mail_plugins = quota imap_quota
}
protocol pop3 {
mail_plugins = quota
}
plugin {
quota = maildir:User quota
quota_rule = *:storage=0:messages=1000
quota_warning = storage=95%% quota-warning 95 %u
quota_grace = 10%%
quota_exceeded_message = ESTE BUZON HA EXCEDIDO LA CUOTA ASIGNADA
}