#!/bin/bash

. ${TOOLKIT}-functions.sh

[ -f /etc/postfix/sasl_passwd ] || {
	cd /etc/postfix
	cp /dev/null sasl_passwd
	postmap sasl_passwd
	SOMETHING_CHANGED=true
}

# remove exim4 package if still installed
#
exim_pkgs="
	exim4
	exim4-base
	exim4-config
	exim4-daemon-light
"
remove_pkgs $exim_pkgs


$SOMETHING_CHANGED && {
	newaliases
	restart_service postfix
}
exit 0
