Linux Harbour

Open Source Technology Media

Linux

Installing Mailman on Ubuntu

Mailman is a famous mailing list system for various open source projects for many years. To install mailman on Ubuntu 16.04, we did the following steps.

We install mailman with apt-get.

$ apt-get install mailman

And it is a must to create a ‘mailman’ mailing list.

$ newlist mailman

Then following instruction to update aliases files.

$ vim /etc/aliases

Adding the following lines to aliases text file.

## mailman mailing list
mailman:              “|/var/lib/mailman/mail/mailman post mailman”
mailman-admin:        “|/var/lib/mailman/mail/mailman admin mailman”
mailman-bounces:      “|/var/lib/mailman/mail/mailman bounces mailman”
mailman-confirm:      “|/var/lib/mailman/mail/mailman confirm mailman”
mailman-join:         “|/var/lib/mailman/mail/mailman join mailman”
mailman-leave:        “|/var/lib/mailman/mail/mailman leave mailman”
mailman-owner:        “|/var/lib/mailman/mail/mailman owner mailman”
mailman-request:      “|/var/lib/mailman/mail/mailman request mailman”
mailman-subscribe:    “|/var/lib/mailman/mail/mailman subscribe mailman”
mailman-unsubscribe:  “|/var/lib/mailman/mail/mailman unsubscribe mailman”

And we run newaliases to let Postfix to update alias indexes file.

$ newaliases

Restart Postfix and Mailman services

$ service postfix restart
$ /etc/init.d/mailman restart

Done. And you can create other mailing list on command line by referring above steps to create ‘mailman’ mailing list.

Founder of Linux Harbour