Mailman is an open source program for managing electronic mail discussions and e-newsletter lists. Many open source mailing

lists (including all the Ubuntu mailing lists) use Mailman as their mailing list software. It is powerful, easy to install and easy to maintain.

Install MailMan and start it:

apt-get install mailman
newlist mailman
/etc/init.d/mailman start

Copy virtualhost file to apache configuration and restart apache.

cp /etc/mailman/apache.conf /etc/apache2/sites-enabled/mailman
a2ensite mailman
/etc/init.d/apache2 restart

Make changes in mailman config files

vi /etc/mailman/mm_cfg.py
/usr/lib/mailman/bin/genaliases

Make changes in postfix master.cf

vi /etc/postfix/master.cf

mailman   unix  –       n       n       –       –       pipe
flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py
${nexthop} ${user}

Edit aliases and add the provided aliases:

vi /etc/aliases

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”

newaliases

Restart postfix and browse mailman

/etc/init.d/postfix restart

http://hostname/cgi-bin/mailman/admin/

Advertisements