Majordomo: How I Manage 17 Mailing Lists Without Answering "-Request" Mail D
Total Page:16
File Type:pdf, Size:1020Kb
Majordomo: How I Manage 17 Mailing Lists Without Answering "-request" Mail D. Brent Chapman – Great Circle Associates ABSTRACT Majordomo is a perl program written to handle routine administration of Internet mailing lists with as little human intervention as possible. Modeled after the Listserv implementations common on BITNET (but unfortunately rare on the Internet), it automates the administration of mailing lists by allowing users to perform the most frequent operations ("subscribe" and "unsubscribe") themselves, while allowing the list owners to either "approve" each of these operations (or initiate them on behalf of a user), or merely monitor them as they are automatically approved. It also automates response to certain other common queries from users, such as "what lists are served by this Majordomo server?", "what is the topic of list ’foobar’?", "who is already on list ’foobar’?", and "which lists managed by this Majordomo server am I already on?". Majordomo allows individual list owners to manage their own lists (subscribe and unsubscribe users, and change the general information message for their list) without any action by the overall Majordomo owner. It serves both "open" lists (where users can add themselves to the list, and the list owner is merely informed of this action) and "closed" lists (where a subscription request from a user generates an approval request from the Majordomo server to the list owner, who can then either approve or ignore the request). Finally, all interactions with Majordomo by both users and list owners take place totally by electronic mail, so users and list owners do not require login access (nor even direct TCP/IP connectivity) to the machine Majordomo is running on, and no special client software is required. Introduction turnaround on their requests) while spending as little time as possible in the long run on administrivia. A Anyone who has ever managed a significant BITNET-style Listserv seemed to be an appropriate electronic mailing list by hand (which is, on the solution, so I started investigating alternatives. Internet at least, the usual method) knows how much time it takes to process the endless requests from Defining the Problem users of the form "please subscribe me to your list", "please unsubscribe me from your list", "please tell The first step was to identify just what func- me about your list", "please tell me if I’m already on tionality I desired. First and foremost, I wanted your list", and so forth. It’s a time-consuming, bor- something that would handle routine "subscribe" and ing, repetitive task; just the sort of thing that’s a per- "unsubscribe" requests automatically, with no human fect candidate to be automated. intervention required for routine requests (though I wanted to give the owner of a given list the option When SAGE (the System Administrators Guild, of passing judgement on all subscription requests, if a USENIX Special Technical Group) was formed, they so desired). Second, I wanted something that the founding members decided to establish over a could easily handle many mailing lists simultane- dozen mailing lists for various purposes (one for the ously; I had 17 to begin with, and I was sure that board of directors, one for each of the 16 initial more would be added as time passed. Third, I working groups, one the chairs of all the working wanted something that could automatically handle groups, and so forth). The USENIX Association other user requests (such as "what lists are avail- volunteered the USENIX.ORG machine as a home able?", "please tell me about list ’foobar’", and for these mailing lists, but didn’t have the staff "which of your lists am I on?") that, while less com- resources to set up and operate the mailing lists. I mon than "subscribe" and "unsubscribe", still occur volunteered to act as Postmaster for SAGE, and han- relatively frequently. dle all the mailing lists. As an independent consul- tant, my schedule is rather erratic, and I don’t have a The first thing I did was look around for suit- company paying my salary while I pursue volunteer able publicly available software that might already work like this; thus, I wished to automate the job as exist, or that might be easily adapted to my needs. much as possible, so that I could provide a high Searches of the common Internet software archives, level of service to the users (including fast queries to the "Archie" anonymous FTP indexing 1992 LISA VI – October 19-23, 1992 – Long Beach, CA 135 Majordomo: How I Manage 17 Mailing Lists ... Chapman service, and email to certain acquaintances who I "majordomo", which the dictionary defines as "a per- thought might know of such software produced two son who speaks, makes arrangements, or takes results: an implementation of the BITNET Listserv charge for another", and which seems perfectly written in C for UNIX (from the comp.sources.unix appropriate given the nature of the software. archives), and several different programs named "listserv" written in perl. Designing a Solution I first examined the BITNET Listserv C pack- My first step in designing a solution was to age from the comp.sources.unix newsgroup archives. decide on the general approach I was going to take. It looked like it would do most of what I wanted, First, I decided that all routine interactions with but it also looked like it did a lot of things I didn’t Majordomo would take place asynchronously via really care about (there appeared to be features for email. Second, since the software was going to coordinating activities between multiple Listserv spend most of its time parsing emailed instructions, servers on different machines, for instance). It processing text files (the actual mailing lists) accord- appeared to be rather short on documentation, and ing to those instructions, and generating emailed what documentation there was seemed to assume responses to users, I wanted to write it in a language that the reader was already familiar with BITNET well-suited for that task; perl seemed the natural Listserv implementation and operation. All in all, it choice. looked like it would be a real headache for me to In the Majordomo world model, there are three install, configure, and maintain, since I’m not fami- types of people: users (without any special liar with BITNET Listserv implementation and privileges), mailing list owners, and the owner of the operation. Majordomo server itself. Interactions with users The next things I looked at were several perl take place strictly by email; the user mails a set of scripts from a variety of sources that were sup- requests to Majordomo, and Majordomo processes posedly Listserv-like servers. Some of these scripts those requests and sends back appropriate replies. were pointed out to me by folks on the net who Interactions with list owners also take place strictly knew I was looking for such a thing, and I found by email, but a list owner can do a few things that a others by searching through Archie for "listserv". normal user can’t; the commands that are restricted Unfortunately, these various scripts all turned out to to list owners are protected with a per-list password be more what I’d call "archive servers" than "list- (though it’s very weak password protection, since the serv" implementations; they were written to auto- password is passed in the clear through the email; mate retrieval of files from archives via email, for the goal is not absolute security, but to avoid people folks who don’t have access to anonymous FTP. making a nuisance of themselves by abusing the When I examined one of these scripts that claimed Majordomo server). The Majordomo owner is the to support "subscribe" and "unsubscribe" requests, I person responsible for maintaining the Majordomo found that what it did with such requests was for- server itself, and for performing tasks such as creat- ward them by email to the mailing list owner for ing new mailing lists to be served by Majordomo. manual processing; this was exactly what I was try- The software needs to support multiple mailing ing to avoid! lists, each owned by different individuals. Some In the end, I decided to implement my own owners wish to approve all "subscribe" requests for version of Listserv, so that I could get exactly what I their list (a "closed" list), while other owners wish wanted. The name for my software was provided by routine "subscribe" requests to be approved automat- Eliot Lear of Silicon Graphics, Inc.; he suggested ically (an "open" list), with notification to the owner. Command Description subscribe list [address] Subscribe yourself (or address, if specified) to list unsubscribe list [address] Unsubscribe yourself (or address, if specified) from list which [address] Find out which lists you (or address, if specified) are on who list Show the members of list info list Show the general introductory information for list lists Show the lists handled by this Majordomo server help Retrieve a help message, explaining these commands end Stop processing commands (useful if your mailer automatically adds a signature to your messages) Figure 1: Majordomo user commands 136 1992 LISA VI – October 19-23, 1992 – Long Beach, CA Chapman Majordomo: How I Manage 17 Mailing Lists ... Routine "unsubscribe" requests are approved way to think about "approve", by the way, is that the automatically, with notification to the list owner, for list owner is telling Majordomo "I approve this com- both open and closed lists. Owners have a way (the mand; just do it!", not "I approve this request you "approve" command) to approve all "subscribe" sent me earlier". Majordomo doesn’t keep track of requests on closed lists, as well as non-routine "sub- outstanding requests; when an "approve" command scribe" and "unsubscribe" requests on open lists.