Skip to end of metadata
Go to start of metadata

This method uses a 'Postfix' workaround.

See also Integrating Mailman with Sendmail - Method 1 which uses mm-handler.

 Introduction

To be read in conjunction with the mailman installation instructions at
<http://www.list.org/mailman-install/index.html>
and the post by Ed Greenberg at
<http://mail.python.org/pipermail/mailman-users/2004-June/037518.html>

Step 1 - Installation requirements

I'm using Apache2, Mailman 2.19 and FreeBSD4 and Python 2.4

Step 2 - Set Up Your System

As root

I used -> user: mailman, group:mailman, password: n

Step 3 - Build and Install Mailman

create Installation Directory (as root)

Now, go to the directory where you have downloaded mailman

Change back to user root

You can ascertain the correct option for --with-mail-gid from /etc/
mail/sendmail.cf

I'm on FreeBSD so use this command

Now check permissions

My webserver runs as nobody (check httpd.conf on your system to confirm)

Step 4 - Check your installation

Step 5 - Set up your webserver

Add this to your httpd-vhosts.conf, or httpd.conf depending on which 
version of Apache you are using

and restart apache

Step 6 - Integrating sendmail and mailman

Integrating sendmail and mailman

mm-handler would not work for me (after considerable amount of time trying) - I think because by server was medicine.net.au and the address I wanted to use was practiceimprovement.org.au, even though practiceimprovement.org.au was correctly set up on dns to be delegated to the right server.

So I used Ed Greenberg's clever approach at
<http://mail.python.org/pipermail/mailman-users/2004-June/037518.html>
which seems better to me anyway.

Note: On Freebsd I first had to build sudo!

create the file /usr/sbin/mailman.aliases c

containing the lines below =>

Note: I spent a lot of time bug testing as I used 'cp' in the 
mailman.aliases script rather than /usr/cp
(it worked from the command line but not the web interface)

make it executable

Change your sendmail.cf file to include the new alias file
(for me, add this to medicine.net.au.mc)
define(`ALIAS_FILE', `/etc/mail/aliases,/etc/mail/mailman.aliases')
(and then as root)

Update your sudoers file ('nobody' is the user apache runs under - 
check your httpd.conf)

Also, if you have

in the sudoers file, you need to remove or comment it.

Step 7 - Review your site defaults

my mm_cfg.py has these added

Steps 8 - 15 


Follow the rest of the instructions from step 8 on at ->
<http://www.gnu.org/software/mailman/mailman-install/index.html>

Testing

When you create a list using /bin/newlist, you should find that the file /etc/mail/mailman.aliases has been created / updated.
(I had some permissions to sort out in a few directories before it all worked smoothly)
The error log is helpful at /usr/local/mailman/logs/error

These commands can be helpful for troubleshooting, after you have successfully created a testlist and subscribed yourself to that list

To test mailman

If that works, use this to test your sendmail/mailman integration

Hope this helps someone and would welcome corrections or improvements.
 

Labels
  • None