Installing Mailman mailing list software on FreeBSD 7.1

Lars Sommer,, 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.


Install the port
Enable the option POSTFIX

See eventually:

Add the the bottom of /usr/local/mailman/Mailman/
MTA = ‘Postfix’

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

Edit in postfix/, the virtual_alias_maps line:
virtual_alias_maps = mysql:/usr/local/etc/postfix/,

Add to /etc/rc.conf:

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:

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

Skriv et svar

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