Creating a Majordomo Email List
Once you have read the documentation for Majordomo, connect to your virtual
server via Telnet or SSH.
Do the following for each list you want to create:
- Create an empty file named for the list (my-list
in the examples below) in your usr/local/majordomo/Lists
directory and make sure the file mode is 644:
% chmod 644 usr/local/majordomo/Lists/my-list
- Create a file called my-list.passwd
in your usr/local/majordomo/Lists
directory. This file will contain the list manager's "approve" password
for the list (file mode 600).
Substitute a mailing list administrator password for mypassword
> usr/local/majordomo/Lists/my-list.passwd mypassword
- Create a file called my-list.info.
This file will contains the initial introductory info for the list.
To create this file using pico
> usr/local/majordomo/Lists/my-list.info This list is for discussions
about my list. ^D (control-D)
- Add something like the following to your etc/aliases
- Run vnewaliases to
update the aliases database:
- Give your new list a try by sending an email to my-list@MY-DOMAIN.NAME.
One of the powerful features of Majordomo is the ability to create moderated
lists which are controlled by a central moderator. This control prevents
abuse of your email list by outside parties as well as allowing the moderator
to restrict frivolous postings.
Before creating any moderated majordomo email lists, you should consider
the following security precautions.
- You probably should disable two dangerous commands in the ~/usr/local/majordomo/majordomo
Perl script, namely "who" and "which". You can do this by commenting
out lines 210 and 211 of the script.
- It is also wise to modify your Virtual Server's sendmail configuration
file (~/etc/sendmail.cf) so that outside parties cannot expand
(EXPN) and verify (VRFY) email aliases. Add the following line as the
last entry in the Options section.
To create a moderated Majordomo email list, connect to your Virtual Server
via Telnet or SSH
and do the following for each moderated list you create.
- The following three files represent what you will need for your moderated
e-mail list (
in the examples below). You will need to create these three files for
each moderated list and store them in your "~/usr/local/Majordomo/Lists
- sample - contains the list
e-mail addresses, one per line
- sample.passwd -
contains the moderator password
- sample.info - contains
the information for your e-mail list
- Create E-Mail Aliases
like the following.
# sample moderated mailing list
"|/usr/local/majordomo/wrapper resend -A -R -l sample -h me@MY-DOMAIN.NAME sample-hidden-list"
sample-request: "|/usr/local/majordomo/wrapper request-answer sample"
In the example above the "hidden" mailing list is actually an alias
You will probably want to change the occurrences of
to be something obscure (since this is the first thing people who want
to break into your list will check for).
- Now that you have a moderated mailing list, you will need to know
how to post to it. You must supply your password as a user defined mail
header titled "Approved:". So if for example your password was "mypass",
you would need to add the following header to a message for it to be
approved by Majordomo.