- Add apache to list of users that can send mail as others without a
authorMark Huang <mlhuang@cs.princeton.edu>
Tue, 16 Jan 2007 17:21:50 +0000 (17:21 +0000)
committerMark Huang <mlhuang@cs.princeton.edu>
Tue, 16 Jan 2007 17:21:50 +0000 (17:21 +0000)
warning, so that the API can send out mail.

plc.d/mail

index 65b0723..fe31b25 100755 (executable)
@@ -7,7 +7,7 @@
 # Mark Huang <mlhuang@cs.princeton.edu>
 # Copyright (C) 2006 The Trustees of Princeton University
 #
-# $Id: mail,v 1.2 2006/04/25 21:18:19 mlhuang Exp $
+# $Id: mail,v 1.3 2006/06/23 20:29:22 mlhuang Exp $
 #
 
 # Source function library and configuration
@@ -26,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