Set the document root to /data/var/www/html (static files
[myplc.git] / plc.d / mail
index 129bb3d..fe31b25 100755 (executable)
@@ -7,11 +7,15 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: httpd,v 1.1 2006/04/06 21:51:59 mlhuang Exp $
+# $Id: mail,v 1.3 2006/06/23 20:29:22 mlhuang Exp $
 #
 
 # Source function library and configuration
 . /etc/plc.d/functions
+. /etc/planetlab/plc_config
+
+# Be verbose
+set -x
 
 case "$1" in
     start)
@@ -22,6 +26,10 @@ case "$1" in
        MESSAGE=$"Starting mail server"
        dialog "$MESSAGE"
 
+       # 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
+
        service sendmail start
        check