Computer

Installing Mailman mailing list software on FreeBSD 7.1

Lars Sommer, lasg@lasg.dk, 2009-03-17
DISCLAIMER: This is a personal note made for personal usage. It might not be easy usable nor explaining.

This setup is installing Mailman on a working mailserver running Postfix, with virtual domains in MySQL,
and with a working webserver running Apache 2.

Installation:

Install the port
mail/mailman
Enable the option POSTFIX

See eventually:
/usr/local/share/doc/mailman/FreeBSD-post-install-notes

Add the the bottom of /usr/local/mailman/Mailman/mm_cfg.py:
SMTPHOST = ‘lasg.dk’
MTA = ‘Postfix’
POSTFIX_STYLE_VIRTUAL_DOMAINS = [‘lasg.dk’,’hosting.lasg.dk’]

Add to postfix/main.cf:
alias_maps = hash:/usr/local/mailman/data/aliases

Edit in postfix/main.cf, the virtual_alias_maps line:
virtual_alias_maps = mysql:/usr/local/etc/postfix/mysql_virtual_alias_maps.cf,
hash:/usr/local/mailman/data/virtual-mailman

Add to /etc/rc.conf:
mailman_enable=”YES”

Check permissions on /usr/local/mailman/data/
aliases, aliases.db, virtual-mailman, virtual-mailman.db
to be in group “mailman” and with permissions rw-rw—-


Apache configuration:

This is a very simple config for Apache.
This can be inserted within a virtual host configuration scope.
This will allow everyone to access archives through /pipermail, and see all lists.
Perhaps a more secure approach would be to put ssl, htaccess and htpasswd on.

ScriptAlias /mailman “/usr/local/mailman/cgi-bin”
Alias /pipermail “/usr/local/mailman/archives/public”
Options FollowSymLinks ExecCGI AllowOverride None Order allow,deny Allow from all


Configure and starting up:

Run
/usr/local/mailman/bin/reset_pw.py
to set the master admin password for Mailman.

Create an initial required maillist, called mailman:
/usr/local/mailman/bin/newlist mailman
You will be asked for email address and a password

Reload postfix and start mailman:
/usr/local/etc/rc.d/postfix reload
/usr/local/etc/rc.d/mailman start

It should work.

All administrative scripts are located in
/usr/local/mailman/bin

Leave a Reply

Din e-mailadresse vil ikke blive publiceret. Krævede felter er markeret med *