]> scripts.mit.edu Git - www/raw.git/blob - mail/39.mdwn
Import from TextPattern
[www/raw.git] / mail / 39.mdwn
1 [[!meta title="MIT SIPB Mail Script Service"]]
2 The mail script service uses
3 [procmail](http://www.google.com/search?q=procmail) allows people
4 to set up scripts to process e-mail using an
5 [Athena](http://web.mit.edu/ist/topics/athena/) account. Although
6 this service has been designed with reliability in mind, it should
7 not be used to run critical applications that cannot tolerate
8 downtime.
9
10 Your mail scripts will automatically process mail sent to
11
12     YOUR_LOCKER_NAME@scripts.mit.edu or
13     YOUR_LOCKER_NAME+ANY_TAG@scripts.mit.edu or
14     ANY_TAG@YOUR_LOCKER_NAME.scripts.mit.edu
15
16 If you have a non-MIT hostname served by scripts.mit.edu, your mail
17 scripts will also process mail sent to
18
19     ANY_TAG@YOUR_DOMAIN.com
20
21 You can access the tag on a message from your procmailrc file by
22 parsing the X-Original-To header or as the $1 variable.
23
24 #### **To sign up for the service:**
25
26     athena% add scripts
27     athena% signup-mail
28
29 (If you are confused about how to run the above commands on Athena,
30 e-mail scripts@mit.edu for assistance. You must have an
31 [Athena account](http://web.mit.edu/olh/Register/) and understand
32 the
33 [MITnet rules of use](http://web.mit.edu/olh/Welcome/rules.html) in
34 order to use the service.)
35
36 This signup process will create a **mail\_scripts** directory.
37 Learn about [procmail](http://www.google.com/search?q=procmail) and
38 modify your \~/mail\_scripts/procmailrc file to do whatever mail
39 processing you desire. You may want to look at our sample files in
40 [/mit/jbarnold/mail\_scripts](http://web.mit.edu/jbarnold/mail_scripts/).
41 If your scripts need to write data, be sure to
42 [give daemon.scripts the necessary access](http://scripts.mit.edu/faq/31/can-my-scripts-write-data-somewhere)
43 in AFS.
44
45 Finally, add yourself to the
46 [scripts-announce mailing list](https://mailman.mit.edu/mailman/listinfo/scripts-announce)
47 if you would like to receive announcements of major service changes
48 and outages. This list receives less than one e-mail per month on
49 average.
50
51 For more information, see our list of
52 [Frequently Asked Questions](../faq/).
53
54
55