23
Mailing Lists Plus Ayitey Bulley [email protected]

Mailing Lists Plus Ayitey Bulley [email protected]

Embed Size (px)

Citation preview

Page 1: Mailing Lists Plus Ayitey Bulley bulley@ghana.com

Mailing Lists Plus

Ayitey [email protected]

Page 2: Mailing Lists Plus Ayitey Bulley bulley@ghana.com

Workshop Agenda

• Introduction to Mailing Lists• Majordomo Installation• Sendmail & Majordomo• Creating & Managing Lists• Mhonarc, Majorcool, other tools and

advanced topics

Page 3: Mailing Lists Plus Ayitey Bulley bulley@ghana.com

Introduction to Mailing Lists

• Really Basic Lists (the quick & dirty way)– addressbook– MTA (exim or sendmail) aliases

• Mailing List Management Software (MLM)– The Mailing List Software Inventory http://listes.

cru.fr/sympa/robots.html

Page 4: Mailing Lists Plus Ayitey Bulley bulley@ghana.com

Addressbook

• Advantages– Quick to implement.– Requires no interaction with any outside

agent (listmaster, MLM software, etc.).

• Disadvantages– It can quickly become a pain to keep updated.– Users replying to a message may end up

talking to many more people than they intended to.

– Control over list participation.– Does not scale well.

Page 5: Mailing Lists Plus Ayitey Bulley bulley@ghana.com

MTA (exim/sendmail) Aliases

• If a system administrator is willing to take on the task of maintaining list membership this can be done quickly using a sendmail aliases:

# Alias for distribution list, members specified here:

staff:wnj,mosher,sam,ecc,mckusick,sklower,olson,rwh@ernie

• A sysop may also allow aliases that point to lists that are managed by individual users:

# Alias for distribution list, members specified elsewhere:

mylist: :include:/usr/home/user/my-list

• While both of these are quick to set up, they require hand maintenance by the owner.

Page 6: Mailing Lists Plus Ayitey Bulley bulley@ghana.com

Mailing List Management Software (MLM)• When choosing an MLM you need to

remember that the software must allow at least three layers of list management:

– List Master– List Owners– List Members

Page 7: Mailing Lists Plus Ayitey Bulley bulley@ghana.com

List Master

• Trusted user with access to the central mailer software (exim, sendmail, etc.).

• Ability to create, delete and re-configure individual lists.

• Error handling and problem reporting.

Page 8: Mailing Lists Plus Ayitey Bulley bulley@ghana.com

List Owners

• Ability to manage user membership (subscribe/unsubscribe)

• Ability to configure list options and Information.

• Support of archives or digests • Access control for lists (open, closed,

moderated, etc.)

Page 9: Mailing Lists Plus Ayitey Bulley bulley@ghana.com

List Members

• Ability to manage personal membership (subscribe, unsubscribe)

• Access to information (lists, info, who, which)

• Access to the listowner (owner-listname@)

Page 10: Mailing Lists Plus Ayitey Bulley bulley@ghana.com

Supporting List Owners and End-users• This requires: listmaster@ & owner-

listname@• Good Documentation

– Joining a Mailing List at the UO – Managing a Majorodomo List

• Training – Managing a Majordomo List

• Communication – A list for list owners– Stock text for responding to common problems – Pointers to documents in every listmaster email

message (.signature file or message_footer)

Page 11: Mailing Lists Plus Ayitey Bulley bulley@ghana.com

Test Drive Exercise

•Create a mailing list using exim aliases file. •Join a majordomo list

Send mail to [email protected] with subscribe afnog in the body of the message.

Page 12: Mailing Lists Plus Ayitey Bulley bulley@ghana.com

Majordomo Installation

• Before installing majordomo you will need:– root access– perl– sendmail or exim– gnu c compiler (gcc) or some other version of cc– complete paths to perl, sendmail or exim and gcc

• Installing majordomo consists of two main parts:– root tasks– tasks for majordomo user (majordom)

Page 13: Mailing Lists Plus Ayitey Bulley bulley@ghana.com

Installing Majordomo - root tasks

• Create a user and group to own majordomo.• Make changes to sendmail or exim

– add majordom to list of Trusted users– add an entry for the majordomo.aliases file

(optional)

• Create the majordomo.aliases file.– create empty files– set permissions on files– edit to add new list aliases to file– run exim_dbmbuild/newaliases– restart exim/sendmail

Page 14: Mailing Lists Plus Ayitey Bulley bulley@ghana.com

Installing Majordomo - root tasks (contd.)• Install the majordomo software.

– uncompress files in a temporary working directory.

– edit the Makefile defining• paths to Perl interpreter and C compiler.

• the majordomo home directory.

• location of the manual pages.

• user and group majordomo will run under.

• permissions for the various files and directories.

Page 15: Mailing Lists Plus Ayitey Bulley bulley@ghana.com

Installing Majordomo - root tasks (contd.)

• Create a majordomo.cf file and edit it.– copy the sample.cf file to majordomo.cf– edit the majordomo.cf file and set the ff. variables

• $whereami What machine am I on?

• $whoami Who do users send requests to me as?

• $whoami_owner Who is the owner of the above, for problems?

• $homedir Where can I find my extra .pl files?

• $listdir Where are the mailing lists?

• $log Where do I write my log?

• $sendmail_command Where the sendmail program resides.

• $mailer What program and args do I use to send mail to the lists?

• $bounce_mailer What program and args do I use to send administrative messages?

Page 16: Mailing Lists Plus Ayitey Bulley bulley@ghana.com

Installing Majordomo - root tasks (contd.)• Run make as needed

– make wrapper– make install– make install-wrapper– at this stage the Log file and the lists and

digests directories have not yet been created, though they have been named in the majordomo.cf file.

• Change login id to majordomo user

Page 17: Mailing Lists Plus Ayitey Bulley bulley@ghana.com

Installing Majordomo - majordom tasks• Finish the installation by completing the

ff. Tasks as the majordomo user.– create the Log file, and the lists & digests

directories.– run the config-test.– Test it further by creating a test list and

sending mail to majordomo.

Page 18: Mailing Lists Plus Ayitey Bulley bulley@ghana.com

Installing Majordomo - Exercise

• Install majordomo on your machines using the handouts

• create a mailing list on your workstations.

Page 19: Mailing Lists Plus Ayitey Bulley bulley@ghana.com

Sendmail & Majordomo

• Trusted UserTroot

Tdaemon

Tuucp

Tmajordom

• Using an aliases.majordomo file # location of alias file

O AliasFile=/etc/aliases,/home/majordom/aliases.majordomo

• newaliases equivalent to exim_dbmbuild

Page 20: Mailing Lists Plus Ayitey Bulley bulley@ghana.com

Managing Majordomo

• The most difficult part of mailing lists is day-to-day management. To lessen the task you need:– good documentation – good communication with your owners and

list members – and good tools as lists can quickly become

an enormous time sync.

Page 21: Mailing Lists Plus Ayitey Bulley bulley@ghana.com

Managing Majordomo

• It is very important to hand-off tasks to the lowest link in the mail chain at every opportunity. Hand-off could be as follows:root --> listmasterlistmaster --> listownerlistowner --> list members

• If you are the listmaster, you will also want a set of tools that allow you to deal with routine tasks such as list creation, deletion etc. as well as resolve problems with a minimum of effort.

Page 22: Mailing Lists Plus Ayitey Bulley bulley@ghana.com

Managing Majordomo - Exercise

• Install and setup the UO md-apps for managing list creation/deletion request.

• Use handouts to do this exercise.

Page 23: Mailing Lists Plus Ayitey Bulley bulley@ghana.com

MhonArc, Majorcool, other tools and advanced topics

• Mhonarc - a web archiving tool • Majorcool - another web archiving tool• Advanced Topics

– Virtual Lists• Limited use - requires root intervention

• You need mx records for each host

• Sendmail additions (digest related)

• Virtualusertables and maps

• Reconfigure scripts for multiple installations

• Sendmail configuration required