25bef59d89
- add support for the SA-Exim local_scan function + http://marc.merlins.org/linux/exim/sa.html - new options WITH_SA_EXIM, WITH_AUTH_SASL, WITH_RADIUS_TYPE - fix 150.exim-tidydb.sh when Exim is installed, but not run [1] Submitted by: Brian Somers <brian@Awfulhak.org> [1]
35 lines
728 B
Bash
35 lines
728 B
Bash
#!/bin/sh
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
# Exim hints database maintenance
|
|
#
|
|
# contributed by: Oliver Eikemeier <eikemeier@fillmore-labs.com>
|
|
#
|
|
|
|
# If there is a global system configuration file, suck it in.
|
|
#
|
|
if [ -r /etc/defaults/periodic.conf ]; then
|
|
. /etc/defaults/periodic.conf
|
|
source_periodic_confs
|
|
fi
|
|
|
|
: ${exim_tidydb_enable="YES"}
|
|
: ${exim_tidydb="%%PREFIX%%/sbin/exim_tidydb"}
|
|
: ${exim_dbdir="/var/spool/exim"}
|
|
|
|
case "$exim_tidydb_enable" in
|
|
[Yy][Ee][Ss])
|
|
echo ""
|
|
echo "Tidying Exim hints databases:"
|
|
for db in "$exim_dbdir"/db/*.lockfile; do
|
|
[ "$db" = "$exim_dbdir/db/*.lockfile" ] && continue
|
|
echo
|
|
"$exim_tidydb" "$exim_dbdir" `basename "$db" .lockfile`
|
|
done
|
|
rc=1;;
|
|
|
|
*) rc=0;;
|
|
esac
|
|
|
|
exit $rc
|