5 # Start local mail server.
7 # Mark Huang <mlhuang@cs.princeton.edu>
8 # 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 echo "apache" >/etc/mail/trusted-users
33 (exec 3>&- 4>&- ; service sendmail start)
40 MESSAGE=$"Stopping mail server"