In this tutorial I will show you how to set up Mailman with Postfix and Nginx on CentOS 6. I assume you have already set up Nginx to server CGI scripts using fcgiwrap like I’ve shown you in the previous post.

Here is the link:

I also presuppose that you have a working Postfix configuration.


The first step is to install Mailman.

Next you have to edit your /usr/lib/mailman/Mailman/ and change the DEFAULT_URL_PATTERN.

This is the same hierarchy as in the directory at /usr/lib.

Next download this script:

Extract the into the folder /usr/lib/mailman/bin/.



As a next step, you’ll have to create a Nginx configuration.

Add the following lines and adjust you domain:

That’s it for Nginx, don’t forget to restart it.


The last thing we have to take care of is the Postfix configuration.

Make sure your local IPv6 adress is at mydestinations = in your because mailman seems to use it for sending mails.


Next edit the file and add the following to the bottom:

Now we need a transport map:

Edit the new transport file and add the following line:

After that:


You’re nearly done, add the defaul mailing list called mailman:

Edit your aliases file as told and execute newaliases and postfix restart.

Now you can do the same for any mailing list you want to create.

After that start Mailman and add it to chkconfig.

You can access the Mailman list page at


If you have any problems feel free to write a comment and I will try to help you asap. I’m not 100 percent sure if I’ve written everything necessary as I had to tweak around a lot to make it work.