This is a quick how-to guide for setting up and installing a mailman list serve for <domain.com>
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://<domain.com>/cgi-bin/mailman/listinfo
3. Configure Postfix
Run the command and use the following entries, but replace <domain.com> with your site.
sudo dpkg-reconfigure postfix Internet Site <domain.com> <your_name> <domain.com>, localhost.localdomain, localhost No 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 192.168.0.0/24 + all
Uncomment line in /usr/lib/mailman/Mailman/mm_cfg.py
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/main.cf 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://<domain.com>/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.