Monday, January 30, 2006

Installing Mailman

In the Previous Post I have explained Mailman.

Here I will go about Installing Mailman ---

Installing Mailman through source is pain in the neck.

Like you need to configure group, user , setuid etc ....

If you have no other work then you try that way.

I have installed this through RPM :

The Steps I followed were :

[root@mybox mailman]# urpmi mailman
To satisfy dependencies, the following packages are going to be installed (32 MB):
libpython2.3-2.3-3.1.92mdk.i586
mailman-2.1.2-9.4.92mdk.i586
python-2.3-3.1.92mdk.i586
python-base-2.3-3.1.92mdk.i586
Is this OK? (Y/n) Y
medium "contrib" uses an invalid list file:
mirror is probably not up-to-date, trying to use alternate method

ftp://ftp.is.co.za/mirror/mandrivalinux/old/updates/9.2/RPMS/
./libpython2.3-2.3-3.1.92mdk.i586.rpm
ftp://ftp.is.co.za/mirror/mandrivalinux/old/updates/9.2/RPMS/
./python-base-2.3-3.1.92mdk.i586.rpm
ftp://ftp.is.co.za/mirror/mandrivalinux/old/updates/9.2/RPMS/
./python-2.3-3.1.92mdk.i586.rpm
ftp://ftp.is.co.za/mirror/mandrivalinux/old/updates/9.2/RPMS/
./mailman-2.1.2-9.4.92mdk.i586.rpm
installing /var/cache/urpmi/rpms/python-2.3-3.1.92mdk.i586.rpm /var/cache/urpmi/rpms/python-base-2.3-3.1.92mdk.i586.rpm /var/cache/urpmi/rpms/libpython2.3-2.3-3.1.92mdk.i586.rpm /var/cache/urpmi/rpms/mailman-2.1.2-9.4.92mdk.i586.rpm
Preparing... ##################################################
1:libpython2.3 ##################################################
2:python-base ##################################################
3:python ##################################################
4:mailman ##################################################
Post-install compilation...
Reloading httpd2: [ OK ]

*****
* You must now "cd /usr/lib/mailman/; ./bin/mmsitepass" as root to set the
* site password to be used for administrating all Mailman data as necessary.
*****

*****
* You must also "cd /usr/lib/mailman/; su -c "./bin/newlist mailman" mail" as root to
* setup the base mailman maillist - answer the questions appropriately.
*****

*****
* You should then issue the command "service mailman start" as root to start the server.
*****

Setting Up Mailman Administration Password
#cd /usr/lib/mailman/bin
[root@mybox bin]# ./mmsitepass
New site password:
Again to confirm password:
Password changed.

Creating a New List
[root@mybox bin]# ./newlist mailman
Enter the email of the person running the list: sriram@sriram.com
Initial mailman password:
Hit enter to notify mailman owner...

Since I am using Postfix I added the aliases in /etc/postfix/aliases

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"

Web Configuration - Add this to your httpd.conf file

ScriptAlias /mailman/ /usr/lib/mailman/cgi-bin/

AllowOverride None
Options ExecCGI
Order allow,deny
Allow from all


Alias /pipermail/ /usr/lib/mailman/Mailman/Archiver/

Options Indexes MultiViews FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all

Restart Web Server

[root@mybox conf]# /etc/rc.d/init.d/httpd restart
Shutting down httpd2: [ OK ]
Starting httpd2: [ OK ]
[root@mybox conf]#

[root@mybox conf]# cd /usr/lib/mailman/cron
[root@mybox cron]# crontab -u mailman crontab.in


This Lines were already Mentioned in my file I did not
make any changes

Configuration File for Mailman

#cat /usr/lib/mailman/Mailman/mm_cfg.py

# Put YOUR site-specific settings below this line.
DEFAULT_EMAIL_HOST = 'mybox.sriram.com'
DEFAULT_URL_HOST = 'mybox.sriram.com'
add_virtualhost(DEFAULT_URL_HOST, DEFAULT_EMAIL_HOST)
MTA = 'Postfix'

Now start Mailman Services
/etc/rc.d/init.d/mailman start

Uses a daemon, qrunner, which must be started: (as root)

Url For Administration
http://localhost/mailman/admin/

Url for the list that you created (eg I created mailman above)

To visit the list :

http://localhost/mailman/listinfo/
http://localhost/mailman/listinfo/mailman

I will add FAQ's soon

No comments: