deactivate-postfix   [plain text]


#!/bin/sh

# Written by Gerben Wierda, Sep 2002. I waive every copyright on this and
# I also do not give any warranty.

. ./defines

if [ -e "${PSI}" ]
then
	mv "${PSI}" "${PSIDISABLED}"
fi

# De-activate postfix in /etc/hostconfig
/usr/bin/perl -pi -e 's/POSTFIX=-YES-/POSTFIX=-NO-/g' /etc/hostconfig

/usr/sbin/postfix stop >/dev/null 2>&1