postfix-disable 489 B

1234567891011121314151617
  1. #!/bin/sh
  2. #
  3. # $OpenBSD: postfix-disable,v 1.2 2002/04/19 21:11:29 jakob Exp $
  4. if [ ! -f /etc/mailer.conf.pre-postfix ]; then
  5. echo "can't find /etc/mailer.conf.pre-postfix, postfix not disabled"
  6. exit 1
  7. fi
  8. if [ -f /etc/mailer.conf ]; then
  9. mv -f /etc/mailer.conf /etc/mailer.conf.postfix
  10. mv -f /etc/mailer.conf.pre-postfix /etc/mailer.conf
  11. echo "postfix mailer.conf disabled, old mailer.conf enabled"
  12. else
  13. echo "can't find /etc/mailer.conf, postfix not disabled"
  14. fi