Ignore:
Timestamp:
Apr 1, 2010, 5:57:23 AM (14 years ago)
Author:
mitchb
Message:
Make procmail and cron try harder to actually mail the signup user

At present, we try to set up the initial crontab or procmailrc to
send mail to the user who signed a locker up for the cron or mail
service by stripping off the @REALM from the Kerberos principal.
We need to also strip non-null instances off to get the username.
(If you're doing signups for lockers using machine or service
principals, you ought to be able to fend for yourself.)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/locker-dev/locker/bin/signup-mail

    r1087 r1534  
    99  fs sa /mit/$lname/mail_scripts system:authuser none
    1010  fs sa /mit/$lname/mail_scripts daemon.scripts read
    11   signupuser=`echo "$principal" | sed 's/@.*$//'`
     11  signupuser=`echo "$principal" | sed 's/[/@].*$//'`
    1212  sed /SCRIPTS_USER/s//$signupuser/ /mit/scripts/bin/procmailrc > /mit/$lname/mail_scripts/procmailrc
    1313  echo "By default, mail sent to $lname@scripts.mit.edu will be forwarded to"
Note: See TracChangeset for help on using the changeset viewer.