X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plc.d%2Fmail;h=fba09737630f3d9f41803d51cb6931d04f501f24;hb=effaa2138be88157b2322de42fe9395694918acf;hp=65b0723c8e01764f1ab1e2bc12c62aeff22214a6;hpb=f51604ac9a0f76a71d698952c7bbba1fcb46b3af;p=myplc.git diff --git a/plc.d/mail b/plc.d/mail index 65b0723..fba0973 100755 --- a/plc.d/mail +++ b/plc.d/mail @@ -7,7 +7,7 @@ # Mark Huang # Copyright (C) 2006 The Trustees of Princeton University # -# $Id: mail,v 1.2 2006/04/25 21:18:19 mlhuang Exp $ +# $Id$ # # Source function library and configuration @@ -26,7 +26,11 @@ case "$1" in MESSAGE=$"Starting mail server" dialog "$MESSAGE" - service sendmail start + # 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 + + (exec 3>&- 4>&- ; service sendmail start) check result "$MESSAGE"