PDA

View Full Version : apt-get install mailman - Centos 5.1


holisticgp
05-01-2008, 01:39 PM
In case its of use to anyone:

Step 1.
apt-get install mailman
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
mailman
0 upgraded, 1 newly installed, 0 removed and 0 not upgraded.
Need to get 10.2MB of archives.
After unpacking 34.6MB of additional disk space will be used.
Get:1 http://centos5.rimuhosting.com /5/os mailman 3:2.1.9-2 [10.2MB]
Fetched 10.2MB in 2s (4106kB/s)
Committing changes...
Preparing... ########################################### [100%]
1:mailman ########################################### [100%]
Done.


Step 2. Where is the installation?:
[root@wholisticgp ~]# find / -name 'mailman'
/var/lib/mailman
/var/spool/mailman
/var/lock/mailman
/var/run/mailman
/var/log/mailman
/usr/lib/mailman <---main installation dir
/usr/lib/mailman/mail/mailman
/usr/lib/mailman/scripts/mailman
/etc/cron.d/mailman
/etc/rc.d/init.d/mailman
/etc/logrotate.d/mailman
/etc/mailman
/etc/smrsh/mailman
[root@holisticgp ~]#

Step 3. Create a list named 'mailman' using 'newlist'

(one ref: http://acm.cs.uic.edu/modules/mediawiki/index.php/Debian#Mailman_on_Debian_with_Postfix.2C_instalati on_and_configuration )

So find where 'newlist' is:
[root@wholisticgp ~]# find / -name 'newlist'
/usr/lib/mailman/bin/newlist


Then enter:
/usr/lib/mailman/bin/newlist mailman
(this creates a newlist by the name of 'mailman')


Enter the email of the person running the list: user@email.domain
Initial mailman password: -->newpassword

The message is: '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'. This message should also be emailed to user@email.domain):

## 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"

-->I added above to /etc/aliasis
-->I then ran /usr/bin/newaliases

Hit enter to notify mailman owner... -->done

Step 4. Start mailman
[root@wholisticgp ~]# /etc/init.d/mailman start
Starting mailman: [ OK ]
[root@wholisticgp ~]#


Step 5.
(This info was not right:
You should be able to see mailman running now. Visit:
http://www.wholisticgp.com.au/cgi-bin/mailman/admin
nor was this right
http://localhost/cgi-bin/mailman/admin )

This WAS right it came in the email listed above):
http://wholisticgp.com.au/mailman/admin/mailman


Got error message on web interface:
'you are not authorized to create new mailing lists -->
Step (corresponds to Create the site password in Mailman documentation):
To set the site password, use this command:
/usr/lib/mailman/bin/mmsitepass password

To set the list creator password, use this command:
/usr/lib/mailman/bin/mmsitepass -c password (I think this was the one that did it!)

Step 6. I found I could not view archives, so added this to apache config, then restarted apache (/etc/init.d/httpd restart):

Alias /pipermail/ "/var/lib/mailman/archives/public/"

(was not necess to add the following to apache:
ScriptAlias /mailman/ "/usr/lib/mailman/cgi-bin/" )

Step 7
To upgrade:
apt-get update or apt-get dist-upgrade (not show which...ask rimuhosting)



Step 8. Removing a list
usr/lib/mailman/bin/rmlist -a listname (the -a removes the archives)...but you need to remove the entries from the /etc/alias file and run .../newalias again


Cheers