diff --git a/src/freedombone b/src/freedombone index 3d367a02..1fdf3e44 100755 --- a/src/freedombone +++ b/src/freedombone @@ -5618,6 +5618,15 @@ function configure_imap { if grep -Fxq "configure_imap" $COMPLETION_FILE; then return fi + + # add directories if needed + if [ ! -d /usr/share/dovecot/protocols.d ]; then + mkdir -p mkdir -p /usr/share/dovecot/protocols.d + fi + if [ ! -d /etc/dovecot/conf.d ]; then + mkdir -p /etc/dovecot/conf.d + fi + apt-get -y install dovecot-common dovecot-imapd if [ ! -d /etc/dovecot ]; then