blob: 55237beee7ef83f1816c552a8ff956339bebf528 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
#!/bin/bash
# Configuration System for Qmail
# $Header: /var/cvsroot/gentoo-x86/mail-mta/qmail/files/qmail-config-system,v 1.3 2005/01/03 20:55:10 hansmi Exp $
# This is a configuration system to make using and controlling the interesting parts of the qmail behavior simple
# The only variable that needs to be set before running this is $SERVICE
# this is to inherit QMAIL_CONTROLDIR
. /etc/profile
# now run
# grab the common configuration
[ -s ${QMAIL_CONTROLDIR}/conf-common ] && source ${QMAIL_CONTROLDIR}/conf-common
# grab the per-service configuration
[ -s ${QMAIL_CONTROLDIR}/conf-${SERVICE}d ] && source ${QMAIL_CONTROLDIR}/conf-${SERVICE}d
# special case for qmail-send
[ "${SERVICE}" = "send" -a -s ${QMAIL_CONTROLDIR}/conf-send ] && source ${QMAIL_CONTROLDIR}/conf-send
# you may want to disable this at some point, so I give you the choice here
if [ -s /var/qmail/bin/config-sanity-check -a -z "${QMAIL_DISABLE_SANITY_CHECK}" ]; then
source /var/qmail/bin/config-sanity-check
else
echo "Failed to find sanity checker!"
sleep 30s
exit 1
fi
|