Mailing lists and mailman program

To avoid problems with misusage of mailing lists, I have decided to set up a separate server, and put mailman on it (homepage or here).
Why a separate server? Wel the production server is in max usage with over 1000 users on it, so no touching 😉 Also I wanted to try out the configuration the virtual platform.
As OS CentOS 6 (64-bitni), who has its own mailman package 2.1.12-18.
What do I turn off at the start, so that I have no problems later on :
SE Linux
ip6tables

Nice link is here and here.
Main configuration file is /etc/httpd/conf.d/mailman.conf.
After every change restart Apache service.

1. Change configuration file /etc/httpd/conf.d/mailman.conf, that is unhash the lines :
RedirectMatch ^/mailman[/]*$ /mailman/listinfo
2. Set password for your main mailman site :
# /usr/lib/mailman/bin/mmsitepass your-password
Password changed.
And yes, it is necessary to put the whole path….
3. Changes in file :
# vim /usr/lib/mailman/Mailman/mm_cfg.py
DEFAULT_URL_HOST = fqdn
DEFAULT_EMAIL_HOST = fqdn
And yes, you have to put fqdn, not server name.
4. Check for querries :
# cd /usr/lib/mailman
# bin/update
Upgrading from version 0x0 to 0x2010cf0
getting rid of old source files
no lists == nothing to do, exiting
5. Creating you start mailman list (for every new list, you have to repeat the same steps, from this point on) :
# pwd
/usr/lib/mailman
# bin/newlist name-of-your-list
In this exaple, new list name is “mailman”.
Enter the email of the person running the list: user1@lists.my.domain
Initial mailman 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…

# vim /etc/aliases
Put the above in file.
# newaliases
/etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total
6. Restart Apache and start mailman service :
# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
# service mailman start
Starting mailman: [ OK ]
7. Web access for lists :
For list configuration :
http://IP-addressa-of-server/mailman/admin/mailing-list-name
Web page for users (mailing list members) :
http://IP-address-of-server/mailman/listinfo/mailing-list-name

This entry was posted in Linux and tagged , . Bookmark the permalink.

Comments are closed.