#!/bin/sh set -e if [ "$1" = "configure" -a -z "$2" ]; then # Add the pop3 and pop3s options to the protocols line. perl -pi.bak -e 'if (/^\s*protocols =/i) { s/none//; s/$/ pop3 pop3s/ unless /pop3/; s/[ \t]+/ /g; };'\ /etc/dovecot/dovecot.conf fi if [ -x "/etc/init.d/dovecot" ]; then if [ -x /usr/sbin/invoke-rc.d ]; then invoke-rc.d dovecot restart else /etc/init.d/dovecot restart fi fi