source /a/bin/errhandle/err
else
err "no err tracing script found"
- exit 1
fi
source /a/bin/distro-functions/src/identify-distros
source /a/bin/distro-functions/src/package-manager-abstractions
pre="${0##*/}:"
m() { printf "$pre %s\n" "$*"; "$@"; }
e() { printf "$pre %s\n" "$*"; }
-err() { echo "[$(date +'%Y-%m-%d %H:%M:%S%z')]: $0: $*" >&2; }
+err() { echo "[$(date +'%Y-%m-%d %H:%M:%S%z')]: $0: $*" >&2; exit 1; }
reload=false
i() { # install file
local tmp tmpdir dest="$1"
nn_progs=(exim4)
-if [[ $HOSTNAME == "$MAIL_HOST" ]]; then
+if mailhost; then
# Note dovecots lmtp doesnt need to be in the same nn to accept delivery.
nn_progs+=(spamassassin dovecot)
fi