CentOS Install & Configure Mailman
By Minh • Jan 10th, 2009 • Category: Featured Linux, LinuxHere 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/.

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

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?
Great blog, really.
Thank you very much! Ive saved me a lot of time.
great toturial,,, would u post also HOWTO’s?
regards
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
[...] http://minhtech.com/featuredlinux/install-and-configure-mailman/ Easy AdSense by [...]
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.
[...] 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 [...]
[...] 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 [...]
I write a comment when I appreciate a post on a site or I have
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?
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?
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
When the items aren’t used you will drive it rear to once each 2 or three months, however ensure you do it usually sufficient which the measure establish isn’t but visable whenever your
clean up the item. After residing in The country of spain I got at consuming coffee making use of a through
stove espresso maker because these looked to be all you ever
familiar with render coffee now after I came home in order to the united kingdom I bought myself any.
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!
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.
A little bit of knowledge goes a long way in all situations in life.
Buying a car is no different! That means you need to read advice
from experts, as detailed below, to ensure that when you shop for that car,
you really know what you’re doing and how to get the best deal.
The second important thing to remember through how to develop a
brick wall is that it is made being a veneer wall exclusively.
It is ideal for swimming pool renovating work because their application is much more
versatile. Having tried and failed to repair a brick wall this spring, I face bricklaying Melbourne projects with
trepidation. In order to really make your very own molding invest,
paint it a color that improves your areas. name them and also link them to a a variety of webpage or perhaps a another article through the technique.
I am actually thankful to the owner of this
web site who has shared this impressive article at at this
time.