1999-10-07 16:58:03 -04:00
|
|
|
#!/bin/sh
|
1999-12-05 10:01:28 -05:00
|
|
|
#
|
2000-09-25 17:02:29 -04:00
|
|
|
# $OpenBSD: postfix-disable,v 1.1 2000/09/25 21:02:34 jakob Exp $
|
1999-10-07 16:58:03 -04:00
|
|
|
|
|
|
|
if [ ! -f /etc/mailer.conf.pre-postfix ]; then
|
|
|
|
echo "can't find /etc/mailer.conf.pre-postfix, postfix not disabled"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ -f /etc/mailer.conf ]; then
|
|
|
|
mv -f /etc/mailer.conf /etc/mailer.conf.postfix
|
|
|
|
mv -f /etc/mailer.conf.pre-postfix /etc/mailer.conf
|
|
|
|
echo "postfix mailer.conf disabled, old mailer.conf enabled"
|
|
|
|
else
|
|
|
|
echo "can't find /etc/mailer.conf, postfix not disabled"
|
|
|
|
fi
|