#!/bin/bash
+# $Id$
+# $URL$
#
-# priority: 250
+# priority: 200
#
# Start local mail server.
#
# Mark Huang <mlhuang@cs.princeton.edu>
# Copyright (C) 2006 The Trustees of Princeton University
#
-# $Id$
-#
# Source function library and configuration
. /etc/plc.d/functions
# Add apache to list of users that can send mail as others
# without a warning, so that the API can send out mail.
- echo "apache" >/etc/mail/trusted-users
+ count=$(grep ^apache /etc/mail/trusted-users|wc -l)
+ if [ $count -eq 0 ] ; then
+ echo "apache" >>/etc/mail/trusted-users
+ fi
(exec 3>&- 4>&- ; service sendmail start)
check