#!/bin/sh -e
# exim4 is the default MTA.
# However, it's possible that it was not installed, as we can also function
# with no MTA. Or the user may have already installed a different MTA.
if [ -e /var/lib/dpkg/info/exim4-config.config ]; then
	if [ "$1" = new ]; then
		exec dpkg-reconfigure --unseen-only --default-priority exim4-config
	else
		exec dpkg-reconfigure --default-priority exim4-config
	fi
fi
