88edf9ec08
daemon. It lets users run messages through filters like ClamAV and SpamAssassin during SMTP transactions, so the server can reject mail before assuming responsibility for its delivery. Other unique features include TCP SYN fingerprint and network route recording, verification of sender addresses through SMTP callbacks, SPF (sender policy framework) as a general policy language, qmail-style control over both SMTP-level behavior and local delivery of extension addresses, mail-bomb protection, integration with kernel firewalls, and more. WWW: http://www.mailavenger.org/ PR: ports/80800 Submitted by: David Mazieres <dm+bugs+avenger@mailavenger.org>
32 lines
795 B
Bash
32 lines
795 B
Bash
#!/bin/sh
|
|
|
|
if [ -n "${PACKAGE_BUILDING}" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
if [ "$2" != "POST-DEINSTALL" ]; then
|
|
exit 0
|
|
fi
|
|
|
|
USER=avenger
|
|
GROUP=avenger
|
|
AVDIR=/var/spool/avenger
|
|
AVETC=${PKG_PREFIX}/etc/avenger
|
|
|
|
PW=/usr/sbin/pw
|
|
|
|
if ${PW} groupshow "${GROUP}" >/dev/null 2>&1; then
|
|
echo "If you're done with Mail Avenger permanently, delete the $GROUP group manually: pw groupdel ${GROUP}" | fmt
|
|
fi
|
|
|
|
if ${PW} usershow "${USER}" >/dev/null 2>&1; then
|
|
echo
|
|
echo "If you're done with Mail Avenger permanently, delete the $USER user manually: pw userdel ${USER}" | fmt
|
|
fi
|
|
|
|
for dir in "$AVETC" "$AVDIR"; do
|
|
if [ -d "$dir" ] && ! rmdir $dir 2>/dev/null; then
|
|
echo
|
|
echo "You may wish to investigate the contents of $dir and delete the directory if you're done with Mail Avenger permanently." | fmt
|
|
fi
|
|
done
|