openbsd-ports/mail/postfix/stable/files/postfix-enable
2008-02-01 16:37:52 +00:00

24 lines
901 B
Bash

#!/bin/sh
#
# $OpenBSD: postfix-enable,v 1.8 2008/02/01 16:37:53 jakob Exp $
if [ -f /etc/mailer.conf.postfix ]; then
if [ -f /etc/mailer.conf ]; then
mv -f /etc/mailer.conf /etc/mailer.conf.pre-postfix
echo "old /etc/mailer.conf saved as /etc/mailer.conf.pre-postfix"
fi
mv -f /etc/mailer.conf.postfix /etc/mailer.conf
echo "postfix /etc/mailer.conf enabled"
echo ""
echo "NOTE: do not forget to add sendmail_flags=\"-bd\" to"
echo " /etc/rc.conf.local to startup postfix correctly."
echo ""
echo "NOTE: do not forget to add \"-a /var/spool/postfix/dev/log\" to"
echo " syslogd_flags in /etc/rc.conf.local and restart syslogd."
echo ""
echo "NOTE: do not forget to remove the \"sendmail clientmqueue runner\""
echo " from root's crontab."
else
echo "can't find /etc/mailer.conf.postfix, postfix not enabled"
fi