#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
ERRMSG2='this can cause mailbox locking and access problems.'
case "$1" in
'refresh')
;;
'start')
fi
fi
&& [ ! -f $ALIASES_FILE.pag ]; then
fi
MODE="-bd"
[ -f $DEFAULT_FILE ] && . $DEFAULT_FILE
#
# * MODE should be "-bd" or null (MODE= or MODE="") or
# left alone. Anything else and you're on your own.
# * QUEUEOPTION should be "p" or null (as above).
# * QUEUEINTERVAL should be set to some legal value;
# sanity checks are done below.
# * OPTIONS are catch-alls; set with care.
#
QUEUEOPTION=""
fi
if [ -z "$QUEUEOPTION" -o -n "$QUEUEINTERVAL" ]; then
fi
MODE="-bl"
fi
fi
#
# ETRN_HOSTS should be of the form
# "s1:c1.1,c1.2 s2:c2.1 s3:c3.1,c3.2,c3.3"
# i.e., white-space separated groups of server:client where
# client can be one or more comma-separated names; N.B. that
# the :client part is optional; see etrn(1M) for details.
# server is the name of the server to prod; a mail queue run
# is requested for each client name. This is comparable to
#
# See RFC 1985 for more information.
#
for i in $ETRN_HOSTS; do
-e '/:/s/^.*://p'`
done
fi
;;
'stop')
# Need to kill the entire service contract to kill all sendmail related
# processes
ret=$?
# Since sendmail spawns user processes out of .forward files, it is
# possible that some of these are not responding to TERM. If the
# contract did not empty after TERM, move on to KILL.
fi
;;
*)
echo "Usage: $0 { start | stop | refresh }"
exit 1
;;
esac
exit 0