It is very wise to read the Majordomo documentation before you attempt to create a Majordomo E-Mail list.
Once you have read the documentation, connect to your Virtual Private Server via SSH, su to root, and do the following for each list you 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.
% touch ~/usr/local/majordomo/Lists/my-list% 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 an E-Mail list administrator password for mypassword.
% cat > ~/usr/local/majordomo/Lists/my-list.passwd mypassword ^D(control-D)% chmod 600 ~/usr/local/majordomo/Lists/my-list.passwd
Create a file called my-list.info. This file will contains the initial introductory info for the list. To create this file using cat again, do the following.
% cat > ~/usr/local/majordomo/Lists/my-list.info This list is for discussions about my list. ^D(control-D)
Create E-Mail Aliases like the following.
# "my-list" list my-list: "|/usr/local/majordomo/wrapper resend -h MY-DOMAIN.NAME \ -l my-list my-list-outgoing" my-list-outgoing: :include:/usr/local/majordomo/Lists/my-list owner-my-list: list_manager_e-mail_address_here my-list-request: "|/usr/local/majordomo/wrapper request-answer my-list" my-list-approval: list_manager_e-mail_address_here
Now, give your new e-mail list a try by sending an E-Mail 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 e-mail list by outside parties as well as allowing the moderator to restrict frivolous postings.
Before creating any moderated majordomo e-mail 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 the lines of the script:
# elsif ($cmd eq "which") { &do_which(@parts); }
# elsif ($cmd eq "who") { &do_who(@parts); }
It is also wise to modify your Virtual Private Server's sendmail configuration file (~/etc/sendmail.cf) so that outside parties cannot expand (EXPN) and verify (VRFY) E-Mail aliases. Add the following line as the last entry in the Options section.
Opauthwarnings,needmailhelo,noexpn,novrfy
To create a moderated Majordomo e-mail list, connect to your Virtual Private Server via SSH, su to root, and do the following for each moderated list you create:
The following three files represent what you will need for your moderated list (sample 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 directory.
sample - contains the list E-Mail addresses, one per line.
sample.passwd - contains the moderator password (nothing else).
sample.info - contains a description of your E-Mail list.
Create E-Mail Aliases like the following.
# sample moderated mailing list owner-sample: me@MY-DOMAIN.NAME sample: "|/usr/local/majordomo/wrapper resend -A -R -l \ sample -h MY-DOMAIN.NAME sample-hidden-list" sample-approval: owner-sample sample-hidden-list: :include:/usr/local/majordomo/Lists/sample owner-sample-outgoing: owner-sample sample-request: "|/usr/local/majordomo/wrapper request-answer sample" owner-sample-request: owner-sample
In the example above the "hidden" mailing list is actually an alias sample-hidden-list. You will probably want to change the occurrences of sample-hidden-list 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.
Approved: mypass