Mailing liste i mailman program za njihovo održavanje
Da ne bi dolazilo do zloupotrebe mailing lista, odlučila sam da za njih podignem odvojeni server i da na njega stavim mailman (homepage ili ovde).
Zašto odvojeni server? Pa jer imam gomile korisnika na produkciji, i ne bih da se zezam sa time, a nije problem odvojiti server, ne na virtuelnoj platformi.
Kao OS planiram da stavim CentOS 6 (64-bitni), uz koji ide mailman-2.1.12-18 (u paketu).
Šta u startu isključujem, da ne pravi 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 restartovati Apache servis.
1. Promeniti konfiguracioni fajl /etc/httpd/conf.d/mailman.conf, tj odhešovati red :
RedirectMatch ^/mailman[/]*$ /mailman/listinfo
2. Setovati lozinku za mailman sajt :
# /usr/lib/mailman/bin/mmsitepass vaša-lozinka
Password changed.
I da mora cela putanja….
3. Promena u fajlu :
# vim /usr/lib/mailman/Mailman/mm_cfg.py
DEFAULT_URL_HOST = fqdn
DEFAULT_EMAIL_HOST = fqdn
I da, baš fqdn, NE ime servera.
4. Proveriti za update :
# 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. Kreiranje startne mailman liste (odavde pa na dalje se ponavlja za svaku novu mailing listu) :
# pwd
/usr/lib/mailman
# bin/newlist ime-vaše-mailing-liste
U ovom primeru je ime nove liste “mailman”.
Enter the email of the person running the list: korisnik1@liste.moj.domen
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
Ubaciti ono odozgo u fajl.
# newaliases
/etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total
6. Restartovati Apache i startovati mailman servis :
# service httpd restart
Stopping httpd: [ OK ]
Starting httpd: [ OK ]
# service mailman start
Starting mailman: [ OK ]
7. Web pristup listama :
Za konfiguraciju liste :
http://IP-adresa-servera/mailman/admin/ime-mailing-liste
Web strana za korisnike :
http://IP-adresa-servera/mailman/listinfo/ime-mailing-liste