Skip to content

Commit 5f8144b

Browse files
author
Kristan Kenney
committed
Fix dovecot mailbox configuration
* Map client-specific folders to global folders * Fix "Connection to the storage server failed" error encountered on Ubuntu 16.04 LTS.
1 parent 6381118 commit 5f8144b

File tree

2 files changed

+51
-3
lines changed

2 files changed

+51
-3
lines changed

install/deb/dovecot/dovecot.conf

Lines changed: 35 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,51 @@ login_greeting = Mail Delivery Agent
77
namespace {
88
type = private
99
separator = /
10-
prefix =
1110
inbox = yes
11+
list = yes
1212

13-
mailbox Sent {
13+
mailbox Archive {
1414
auto = subscribe
15-
special_use = \Sent
15+
special_use = \Archive
1616
}
17+
1718
mailbox Drafts {
1819
auto = subscribe
1920
special_use = \Drafts
2021
}
22+
2123
mailbox Trash {
2224
auto = subscribe
2325
special_use = \Trash
2426
}
27+
28+
mailbox "Deleted Messages" {
29+
auto = no
30+
special_use = \Trash
31+
}
32+
33+
mailbox Junk {
34+
auto = subscribe
35+
special_use = \Junk
36+
}
37+
38+
mailbox Spam {
39+
auto = no
40+
special_use = \Junk
41+
}
42+
43+
mailbox Sent {
44+
auto = subscribe
45+
special_use = \Sent
46+
}
47+
48+
mailbox "Sent Mail" {
49+
auto = no
50+
special_use = \Sent
51+
}
52+
53+
mailbox "Sent Messages" {
54+
auto = no
55+
special_use = \Sent
56+
}
2557
}

install/upgrade/0.9.8-28.sh

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,19 @@ cp -rf /usr/local/hestia/install/ubuntu/18.04/templates/web/unassigned/* /var/ww
7373
if [ ! -d /usr/local/hestia/web/edit/server/clamav-daemon ]; then
7474
mv /usr/local/hestia/web/edit/server/clamd /usr/local/web/edit/server/clamav-daemon
7575
fi
76+
77+
# Fix dovecot configuration
78+
if [ -f /etc/dovecot/conf.d/15-mailboxes.conf ]; then
79+
# Remove mailboxes configuration if it exists
80+
rm -f /etc/dovecot/conf.d/15-mailboxes.conf
81+
fi
82+
if [ -f /etc/dovecot/dovecot.conf ]; then
83+
# Update dovecot configuration and restart dovecot service
84+
cp -f /usr/local/hestia/install/hestia-data/dovecot/dovecot.conf /etc/dovecot/dovecot.conf
85+
systemctl restart dovecot
86+
fi
87+
88+
# Rebuild mailboxes
89+
for user in `ls /usr/local/hestia/data/users/`; do
90+
v-rebuild-mail-domains $user
91+
done

0 commit comments

Comments
 (0)