x
Loading
 Loading
Hello, Guest | Login | Register

Mailing Lists and ‘Odd' Files

The simplest way to create a mailing list is to edit the mail aliases file itself, located at /etc/aliases. Simply edit the file and add the list. Lists look like my-list: person1,person2,person3.

1. How do I set up a mailing list?

The simplest way to create a mailing list is to edit the mail aliases file itself, located at /etc/aliases. Simply edit the file and add the list. Lists look like my-list: person1,person2,person3.

For a small list or one that does not change often, hand-editing the alias file is a workable solution. However, for larger and more frequently changing mailing lists, a mailing list management tool is probably better. There are several popular tools available — see the sidebar “Popular Mailing List Software” for a short list — with Majordomo (http://www.greatcircle.com/majordomo) being one of the best-known.

Written in Perl, installation of Majordomo is very simple: download the source from http://www.greatcircle.com/majordomo/1.94.5/majordomo-1.94.5.tar.gz and unpack that file with tar -xzf majordomo-1.94.5.tar.gz. Next, change to the new directory that tar created, create a new user named majordomo, and then follow the steps outlined in the INSTALL file.

Once installed, setting up a Majordomo mailing list is straightforward. While Majordomo has a number of tools to create and maintain mailing lists, the nuts-and-bolts method is to again edit the file /etc/aliases directly.

For example, to create the mailing list my-friends, edit /etc/aliases file and enter the following lines:

# A mailing list for my friends . . . my-friends: “|/opt/majordomo/wrapper resend -l my-friends my-friends” my-friends-list: :include:/opt/majordomo/lists/my-friends owner-my-friends: mascio my-friends-owner: mascio my-friends-request: “|/opt/majordomo/wrapper majordomo -l my-friends 

These five lines (excluding the comment) define a new mailing list. The…

Please log in to view this content.

Not Yet a Member?

Register with LinuxMagazine.com and get free access to the entire archive, including:

  • Hands-on Content
  • White Papers
  • Community Features
  • And more.
Already a Member?
Log in!
Username

Password

Remember me

Forgotten your password?
Forgotten your username?
Read More
  1. KDE 4.4: Does It Work Yet?
  2. Writing Custom Nagios Plugins with Python
  3. Power Up Linux GUI Apps
  4. Tweeting from the Command Line with Twyt
  5. When Memory Serves You: Using ramfs and tmpfs
Follow Linux Magazine
Rackspace