| 
                Last change
                  on this file since 1060 was
                  1011,
                  checked in by mitchb, 17 years ago
           | 
        
        
          | 
            It's wrong to assume that the address lockername@mit.edu is valid.
Further, for activity lockers, if it is valid, it may well be a
large or poorly-maintained list with addresses that will bounce
and cause a mail loop (since the bounces will go back to
lockername@scripts.mit.edu).  Instead, set up the default procmailrc
to direct mail for lockername@scripts.mit.edu to the user who signed
the locker up for mail_scripts, and notify them that this is the
default so they know to adjust it.
           | 
        
        
          
            
              - 
                  Property svn:executable set to
                  
*
               
             
           | 
        
        | 
            File size:
            887 bytes
           | 
      
      
        
  | Rev | Line |   | 
|---|
| [127] | 1 | #!/bin/sh | 
|---|
 | 2 |  | 
|---|
| [659] | 3 | attach scripts | 
|---|
| [127] | 4 | . /mit/scripts/bin$scriptsdev/signup-minimal | 
|---|
 | 5 |  | 
|---|
 | 6 | if [ ! -d "/mit/$lname/mail_scripts/" ]; then | 
|---|
| [660] | 7 |   mkdir -p /mit/$lname/mail_scripts | 
|---|
| [127] | 8 |   fs sa /mit/$lname/mail_scripts system:anyuser l | 
|---|
| [380] | 9 |   fs sa /mit/$lname/mail_scripts system:authuser none | 
|---|
| [127] | 10 |   fs sa /mit/$lname/mail_scripts daemon.scripts read | 
|---|
| [1011] | 11 |   signupuser=`echo "$principal" | sed 's/@.*$//'` | 
|---|
 | 12 |   sed /SCRIPTS_USER/s//$signupuser/ /mit/scripts/bin/procmailrc > /mit/$lname/mail_scripts/procmailrc | 
|---|
 | 13 |   echo "By default, mail sent to $lname@scripts.mit.edu will be forwarded to" | 
|---|
 | 14 |   echo "$signupuser@mit.edu.  You should edit /mit/$lname/mail_scripts/procmailrc" | 
|---|
 | 15 |   echo "to change this and customize your procmail configuration." | 
|---|
| [127] | 16 |   success "the mail script service" "The directory /mit/$lname/mail_scripts has been created." | 
|---|
 | 17 | else | 
|---|
 | 18 |   success "the mail script service" "The directory /mit/$lname/mail_scripts already exists." | 
|---|
 | 19 | fi | 
|---|
       
      
      Note: See 
TracBrowser
        for help on using the repository browser.