Majordomo List Creation
From GPNWiki
This page describes how to create a new mailing list with majordomo.
- Navigate to the directory which majordomo resides:
cd /usr/local/majordomo
- Enter the Lists directory:
cd Lists
- Here you will create an empty file with the name of your list. For example if we wanted to create a list called test-list, we would do:
touch test-list
- Next change the owner and group of this newly created file to majordomo
chown majordom:majordom test-list
- Set the file permissions of this file to 664 with:
chmod 664 test-list
- Next create a file with <list-name>.info, with your desired introduction text. Make sure this file has owner and group of majordom and file permissions of 664. Going with our test-list example, we would ceate a filed called test-list.info and put the list introduction text in it.
- Next we need to add the aliases for the new list to the majordomo aliases file. In the majordomo directory should be a file majordomo.aliases. At the bottom of this page is an example with our list test-list. This alias also includes archiving once a month. If you want the archiving you will need to setup a folder in the archives directory of Majordomo named <list-name>, as in our case, test-list. You can refer to the majordomo NEWLIST document, posted at the bottom of the page for what exactly you need for an alias.
- After adding your alias, run the newaliases command to update the aliases.
- Lastly create a file in the Lists directory, named <list-name>.passwd. In this file put the password for the list.
- Finally, make sure everything is owned by user majordom, group majordom, and writable by both owner and group (i.e., mode 664 for files and mode 775 for directories).
- Send an email to majordomo with the following to generate a default config for the list.
config <listname> <listname>.admin
- From here on out you can add subscribers and or edit the list config using majorcool.
Official Majordomo NEWLIST documentation
Here is the document NEWLIST which comes with a majordomo installation. This document describes in detail how to create a new list.
Sample List Alias
Below is a sample alias entry in the majordomo.aliases file for a list name test-list.
#test-list list test-list-owner: greg@greatplains.net owner-test-list: test-list-owner test-list-approval: test-list-owner test-list-request: "|/usr/local/etc/majordomo/wrapper request-answer test-list" owner-test-list-request: test-list-owner test-list: "|/usr/local/etc/majordomo/wrapper resend -l test-list -h sunflower.greatplains.net test-list-outgoing" test-list-outgoing: :include:/usr/local/etc/majordomo/Lists/test-list, test-list-archive owner-test-list-outgoing: test-list-owner test-list-archive: "|/usr/local/etc/majordomo/wrapper archive2.pl -f /usr/local/etc/majordomo/Archives/test-list/test-list -a -M" owner-test-list-archive: test-list-owner</prev>
