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 '#imap_client_workarounds' \
23 's/#imap_client_workarounds/imap_client_workarounds/g' \
24 /etc/dovecot/dovecot.conf || true
26 cp_check_and_sed '#pop3_client_workarounds' \
27 's/#pop3_client_workarounds/pop3_client_workarounds/g' \
28 /etc/dovecot/dovecot.conf || true
30 cp_check_and_sed 'imap_client_workarounds' \
31 's/imap_client_workarounds.*$/imap_client_workarounds = outlook-idle tb-extra-mailbox-sep netscape-eoh delay -newmail/g' \
32 /etc/dovecot/dovecot.conf || true
34 cp_check_and_sed 'pop3_client_workarounds' \
35 's/pop3_client_workarounds.*$/pop3_client_workarounds = outlook-no-nuls oe-ns-eoh/g' \
36 /etc/dovecot/dovecot.conf || true
38 cp_check_and_sed 'pop3_uidl_format' \
39 's/pop3_uidl_format.*$/pop3_uidl_format = %v.%u/g' \
40 /etc/dovecot/dovecot.conf || true
43 if [ -x /usr/sbin/invoke-rc.d ]; then
44 [ -x /etc/init.d/dovecot ] && invoke-rc.d dovecot restart
46 [ -x /etc/init.d/dovecot ] && /etc/init.d/dovecot restart