7 # Start local mail server.
9 # Mark Huang <mlhuang@cs.princeton.edu>
10 # Copyright (C) 2006 The Trustees of Princeton University
13 # Source function library and configuration
14 . /etc/plc.d/functions
15 . /etc/planetlab/plc_config
22 if [ "$PLC_MAIL_ENABLED" != "1" ] ; then
26 MESSAGE=$"Starting mail server"
29 # Add apache to list of users that can send mail as others
30 # without a warning, so that the API can send out mail.
31 count=$(grep ^apache /etc/mail/trusted-users|wc -l)
32 if [ $count -eq 0 ] ; then
33 echo "apache" >>/etc/mail/trusted-users
36 (exec 3>&- 4>&- ; service sendmail start)
43 MESSAGE=$"Stopping mail server"