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