MinhTech.com

Yet another technology tutorial blog.

CentOS Install & Configure Mailman

By • Jan 10th, 2009 • Category: Featured Linux, Linux

Here is how to install the mailman mailing list on CentOS 5.2.

First, install Mailman via yum:

> yum install mailman

Next, edit its Apache configuration file:

> cd /etc/httpd/conf.d
> vi mailman.conf
RedirectMatch ^/mailman[/]*$ http://domain.com/mailman/listinfo

Uncomment the redirect parameter and enter the correct domain name.

Set the site master password:

> /usr/lib/mailman/bin/mmsitepass password

This password can be used to access any list or any page.

Edit the Mailman configuration file:

> vi /usr/lib/mailman/Mailman/mm_cfg.py
DEFAULT_URL_HOST = ‘domain.com’
DEFAULT_EMAIL_HOST = ‘domain.com’

The URL host parameter usually matches the domain name from the above Apache configuration file. The email host should match the origin of the mail (i.e. the part after the @ of the email address, whether it is host.domain.com or domain.com).

Check for updates:

> cd /usr/lib/mailman
> bin/update
No updates are necessary.

Create the mailman site list and set up the aliases:

> cd /usr/lib/mailman
> bin/newlist mailman

Enter the email of the person running the list: minh@minhtech.com
Initial mailman password: password
To finish creating your mailing list, you must edit your /etc/aliases (or
equivalent) file by adding the following lines, and possibly running the
`newaliases’ program:

## mailman mailing list
mailman: “|/usr/lib/mailman/mail/mailman post mailman”
mailman-admin: “|/usr/lib/mailman/mail/mailman admin mailman”
mailman-bounces: “|/usr/lib/mailman/mail/mailman bounces mailman”
mailman-confirm: “|/usr/lib/mailman/mail/mailman confirm mailman”
mailman-join: “|/usr/lib/mailman/mail/mailman join mailman”
mailman-leave: “|/usr/lib/mailman/mail/mailman leave mailman”
mailman-owner: “|/usr/lib/mailman/mail/mailman owner mailman”
mailman-request: “|/usr/lib/mailman/mail/mailman request mailman”
mailman-subscribe: “|/usr/lib/mailman/mail/mailman subscribe mailman”
mailman-unsubscribe: “|/usr/lib/mailman/mail/mailman unsubscribe mailman”

Hit enter to notify mailman owner…

> vi /etc/aliases
## mailman mailing list
mailman: “|/usr/lib/mailman/mail/mailman post mailman”
mailman-admin: “|/usr/lib/mailman/mail/mailman admin mailman”
mailman-bounces: “|/usr/lib/mailman/mail/mailman bounces mailman”
mailman-confirm: “|/usr/lib/mailman/mail/mailman confirm mailman”
mailman-join: “|/usr/lib/mailman/mail/mailman join mailman”
mailman-leave: “|/usr/lib/mailman/mail/mailman leave mailman”
mailman-owner: “|/usr/lib/mailman/mail/mailman owner mailman”
mailman-request: “|/usr/lib/mailman/mail/mailman request mailman”
mailman-subscribe: “|/usr/lib/mailman/mail/mailman subscribe mailman”
mailman-unsubscribe: “|/usr/lib/mailman/mail/mailman unsubscribe mailman”

> newaliases

After creating the list, add the listed aliases to the bottom of the aliases file, and then run newaliases.

Finally, restart Apache and start mailman:

> /etc/init.d/httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]

> /etc/init.d/mailman start
Starting mailman: [ OK ]

> chkconfig –level 2345 mailman on

The documentation is located at /usr/share/doc/mailman-2.1.9/.

is a technology junkie.
Email this author | All posts by

21 Responses »

  1. Muito bom, a instalação funcionou. Só não consigo criar listas pela interface mailman create. Diz que não tenho autorização. Como resolvo isso?

  2. Great blog, really.

  3. Thank you very much! Ive saved me a lot of time.

  4. great toturial,,, would u post also HOWTO’s?

    regards

  5. Dear All,

    I have installed mailman on centos 6.2 32bits, i have configured it as directed on this blog but i get an error message at the end telling me that it could not open the home_mailbox. what could be the error, please help

    [root@mail mailman-2.1.12]# newaliases
    postalias: fatal: open home_mailbox: No such file or directory

    thanks

  6. [...] http://minhtech.com/featuredlinux/install-and-configure-mailman/ Easy AdSense by [...]

  7. Works like a champ, thanks! I installed it via yum and on centos 6.2 32bit and it worked just fine. No directory error. However I would check there the directive wants the directory and check to see if it was created or has the wrong permissions for starters.

  8. [...] I guess you didn't search enough… anyway take a look at this and/or this howto. BTW you could use the Centos mailman package with your redhat and not mess with the source [...]

  9. [...] customize. See instructions here and also have a look at /usr/share/doc/mailman-2.1.9/INSTALL.REDHAT. There’s a need to access [...]

  10. I write a comment when I appreciate a post on a site or I have
    something to add to the conversation. It’s caused by the passion communicated in the article I looked at. And on this article CentOS Install & Configure Mailman | MinhTech.com. I was actually excited enough to drop a thought :) I do have a couple of questions for you if you usually do not mind. Could it be only me or does it look like like some of these comments come across as if they are left by brain dead folks? :-P And, if you are posting on additional online social sites, I would like to follow anything new you have to post. Would you list every one of all your community sites like your linkedin profile, Facebook page or twitter feed?

  11. This is really interesting, You are a very skilled blogger.

    I have joined your rss feed and look forward to seeking more of your excellent
    post. Also, I’ve shared your web site in my social networks!

  12. It’s actually a nice and helpful piece of information. I am satisfied that you just shared this helpful information with us. Please keep us informed like this. Thank you for sharing.

  13. I am actually thankful to the owner of this
    web site who has shared this impressive article at at this
    time.

  14. Spot on with this write-up, I truly think this web site needs
    much more attention. I’ll probably be returning to read more, thanks for the advice!

  15. After exploring a few of the blog articles on your web site, I truly appreciate your way of writing a blog.
    I book marked it to my bookmark webpage list and will be checking back
    in the near future. Take a look at my website too and tell
    me how you feel.

  16. [...] probleme : SE Linux ip6tables U pitanju je mailman-2.1.12 koji ide uz CentOS 6U4. Zgodan link je ovo. Glavni konfiguracioni fajl je u /etc/httpd/conf.d/mailman.conf. Posle svake promene treba [...]

  17. [...] probleme : SE Linux ip6tables U pitanju je mailman-2.1.12 koji ide uz CentOS 6U4. Zgodan link je ovo i ovo. Glavni konfiguracioni fajl je u /etc/httpd/conf.d/mailman.conf. Posle svake promene treba [...]

  18. Hello! I’ve been reading your website for some time now and finally got the bravery to go ahead and give you a shout out from Porter Texas! Just wanted to mention keep up the excellent job!

  19. Such a great post, the final tip indicating the location of the program documentation is simply sublime. Nice work, keep it up!

  20. Everything is very open with a very clear explanation of the issues.

    It was really informative. Your site is extremely helpful.
    Thank you for sharing!

  21. For the technically challenged, this is the best solution, since no knowledge
    of programming, designing, or hosting is required.
    There is a number of distinguishing features between these two most
    common web hosting solution. Virtual web servers (also referred as virtual
    private servers) share the resources (hardware, disk space, RAM) of a
    web server.

Leave a Reply