X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plc.d%2Fmail;h=fe31b25016d54eb0221c837afb28a3120f94a898;hb=2f0a78d07d92ba2f397a852de6bcc9db8817bfb9;hp=6698a680711faa4ed893453b110c760052db2251;hpb=309572ab8b4843bb6507b0b3f6dc5e5240af257b;p=myplc.git diff --git a/plc.d/mail b/plc.d/mail index 6698a68..fe31b25 100755 --- a/plc.d/mail +++ b/plc.d/mail @@ -7,13 +7,16 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: mail,v 1.1 2006/04/24 15:49:32 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) if [ "$PLC_MAIL_ENABLED" != "1" ] ; then @@ -23,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