Select Page

This is a quick how-to guide for setting up and installing a mailman list serve for <>

1. Install Apache, Postfix, & Mailman:

sudo apt-get install apache2
sudo apt-get install postfix
sudo apt-get install mailman

2. Configure Apache
Copy the site configuration files to Apache, and enable the site

sudo cp /etc/mailman/apache.conf /etc/apache2/sites-available/mailman.conf
sudo a2ensite mailman.conf
sudo service apache2 restart

At this point you should be able to reach your mailman server by going to http://<>/cgi-bin/mailman/listinfo

3. Configure Postfix

Run the command and use the following entries, but replace <> with your site.

sudo dpkg-reconfigure postfix

Internet Site
<>, localhost.localdomain, localhost
No [::ffff:]/104 [::1]/128

Uncomment line in /usr/lib/mailman/Mailman/

MTA = 'Postfix'

Copy alias file to mailman directory and run genaliases to create the alias db

sudo cp /etc/aliases /var/lib/mailman/data/aliases
sudo /usr/lib/mailman/bin/genaliases
sudo chomod g+w /var/lib/mailman/data/aliases.db

Update alias_maps in postfix/ to point to new alias file

alias_maps = hash:/etc/aliases,hash:/var/lib/mailman/data/aliases
alias_database = hash:/etc/aliases, hash:/var/lib/mailman/data/aliases

Reload and restart

sudo /etc/init.d/postfix reload sudo service postfix restart

Set up a default list creator password

/usr/lib/mailman/bin/mmsitepass -c <list-creator-password>

Create a new list by going to http://<>/cgi-bin/mailman/create

I hope this quick tutorial helps you set up your mailman server. If you have any questions or want assistance, please leave a comment below.