Let's install a mailinglist manager. We chose Mailman because it's robust, scalable and easy to administrate. Mailman has a webinterface for list members, administrators and access to the list archives. The Mailman application is built on Python.
First install the software:
apt-get install apache2 mailman
Create a default mailinglist:
newlist mailman
Generate the necessary aliases for Postfix:
/usr/lib/mailman/bin/genaliases
Copy the output of genaliases to /etc/aliases, run newaliases and reload the mailserver:
newaliases /etc/init.d/postfix reload
Configure the webserver to facilitate the webinterface and list archives:
Create a file /etc/apache2/sites-available/mailman with this content:
ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/ <Directory /usr/lib/cgi-bin/mailman/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> Alias /pipermail/ /var/lib/mailman/archives/public/ <Directory /var/lib/mailman/archives/public/> AddDefaultCharset Off Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory>
Don't forget to enable the configuration changes:
a2ensite mailman /etc/init.d/apache2 force-reload
Create a mailinglist manager site password:
/usr/lib/mailman/bin/mmsitepass
Restart mailman:
/etc/init.d/mailman restart
You should now be able to see the webinterface at http://yourhost/mailman/listinfo