3 [ "$1" = "configure" ] || exit 0
4 [ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx
7 . /usr/share/carnet-tools/functions.sh
10 cp_check_and_sed '^protocols' \
11 's/protocols.*$/protocols = imap imaps pop3 pop3s/g' \
12 /etc/dovecot/dovecot.conf || true
14 cp_check_and_sed '#disable_plaintext_auth' \
15 's/#disable_plaintext_auth/disable_plaintext_auth/g' \
16 /etc/dovecot/dovecot.conf || true
18 cp_check_and_sed 'disable_plaintext_auth.*yes' \
19 's/disable_plaintext_auth.*$/disable_plaintext_auth = no/g' \
20 /etc/dovecot/dovecot.conf || true
22 cp_check_and_sed '#client_workarounds' \
23 's/#client_workarounds/client_workarounds/g' \
24 /etc/dovecot/dovecot.conf || true
26 cp_check_and_sed 'client_workarounds' \
27 's/client_workarounds.*$/client_workarounds = outlook-idle/g' \
28 /etc/dovecot/dovecot.conf || true
32 if [ -x /usr/sbin/invoke-rc.d ]; then
33 [ -x /etc/init.d/dovecot ] && invoke-rc.d dovecot restart
35 [ -x /etc/init.d/dovecot ] && /etc/init.d/dovecot restart