Monday, October 12, 2015

Prosedur Membuat Milis di Mailman

Membuat Milis "Testing"
Masuk ke interface web admin sbb :

List Identity:
Name of list: (isi dengan nama milis, misal Testing)
Initial list owner address: (isi alamat email yang mau jadi admin milis ini)
Auto-generate initial list password? No/Yes (ikuti default-nya)
Initial list password: @2o15 (isi dengan password admin milis ini)
Confirm initial password: @2o15 (isi dengan password admin milis ini)

List Characteristics
Should new members be quarantined before they are allowed to post unmoderated to this list? Answer Yes to hold new member postings for moderator approval by default. No/Yes (ikuti default-nya)
Initial list of supported languages. Note that if you do not select at least one initial language, the list will use the server default language of English (USA) (ikuti default-nya)
Send "list created" email to list owner? No/Yes (ikuti default-nya)
List creator's (authentication) password: @2o15 (isi dengan password admin mailman)

Error: You are not authorized to create new mailing lists
Ini gara-gara tidak memasukkan password admin mailman. Yang dimasukkan @2o15. Setelah dimasukkan @2o14, pesan kesalahan ini hilang.

Tambah Anggota
List Administrator Password: @2o15
Enter one address per line below...

Pengujian Milis #1
Pesan selamat datang sudah bisa masuk ke para anggota. Sayangnya belum bisa mem-posting. Perlu meng-edit /etc/aliases dan melakukan restart postfix

Edit /etc/aliases melalui SSH
[root@mail etc]# mcedit /etc/aliases

Tambahkan 11 baris di bawah ini. Supaya gak repot, copy and paste dari baris yang sudah ada
# Milis Testing
testing: "|/usr/lib/mailman/mail/mailman post testing"
testing-admin: "|/usr/lib/mailman/mail/mailman admin testing"
testing-bounces: "|/usr/lib/mailman/mail/mailman bounces testing"
testing-confirm: "|/usr/lib/mailman/mail/mailman confirm testing"
testing-join: "|/usr/lib/mailman/mail/mailman join testing"
testing-leave: "|/usr/lib/mailman/mail/mailman leave testing"
testing-owner: "|/usr/lib/mailman/mail/mailman owner testing"
testing-request: "|/usr/lib/mailman/mail/mailman request testing"
testing-subscribe: "|/usr/lib/mailman/mail/mailman subscribe testing"
testing-unsubscribe: "|/usr/lib/mailman/mail/mailman unsubscribe testing"

Belum dicoba seandainya /etc/aliases tidak di-edit, tapi postfix langsung di-restart. Tidak bisa posting

Restart Postfix
[root@mail etc]# /etc/init.d/postfix restart
Shutting down postfix:                                     [  OK  ]
Starting postfix:                                          [  OK  ]

Pengujian Milis #2
Lakukan pengujian sekali lagi untuk memposting email

Aturan terkait: 
  1. Penghapusan member, bisa dilakukan dari Administrative interface di, dimana testing ini adalah nama milisnya.
  2. Penghapusan milis
  3. Perubahan nama milis (belum dicoba)

Deleting the Mailing List

Removing/deleting mailing lists is performed with the command line tool rmlist. rmlist has 2 modes of operating:
  1. Only remove the list from the admin interface. This retains archives on file system (that is, postings) but makes the list completely inaccessible to users, this removes:
    • The list itself from the web admin interface as well as for users of the list
    • List meta data:
      • Name, description, etc.
      • Policies in place (for example, list moderation settings)
      • List members
  2. Like #1 above but also removes the list archives
If list archives are retained (default behavior), the archive files are left on the file system. If the archives are private, the Mailman administrator can still access the archives through web interface by authenticating with the site password, but list users (and the list administrator) will not have access because their authentications no longer exist. If the archives are public, pipermail URLs can still be used to access the archives without authentication.
NOTE removing the list completely may require manual editing of the mail aliases file, that is, /etc/aliases depending on the MTA and its integration with Mailman or lack thereof.
Once a list has been removed, it may be re-added with the newlist command line tool, however all information about the list (for example, description and previous members) will be missing. However, private archives which were retained will then be available to current members via the web interface.
It is also possible to allow mailing list removal via the web admin interface if the option/variable OWNERS_CAN_DELETE_THEIR_OWN_LISTS is enabled in; by default this option is disabled.

key : gnu mailman delete mailing list

Melihat opsi perintah baris rmlist (menghapus milis)

[root@mail /]# cd /usr/lib/mailman/
[root@mail mailman]# bin/rmlist --help
Remove the components of a mailing list with impunity - beware!

This removes (almost) all traces of a mailing list.  By default, the lists
archives are not removed, which is very handy for retiring old lists.

    rmlist [-a] [-h] listname

        Remove the list's archives too, or if the list has already been
        deleted, remove any residual archives.

        Print this help message and exit.

Ada dua opsi penghapusan milis, dengan opsi -a dan tanpa opsi. Jika tanpa opsi, penghapusan tidak menyebabkan arsip ikut dihapus. Tapi jika dengan opsi -a, berarti arsip ikut dihapus.

Sebenernya penghapusan mailing list juga bisa melalui interface web admin, jika opsi /variable OWNERS_CAN_DELETE_THEIR_OWN_LISTS dibuat enabled di file Secara default, opsi ini di-disabled. (Ini belum dicoba sih)  

Contoh cara menghapus milis Testing

[root@mail /]# cd /usr/lib/mailman/
[root@mail mailman]# bin/rmlist -a testing

To finish removing your mailing list, you must edit your /etc/aliases (or
equivalent) file by removing the following lines, and possibly running the
`newaliases' program:

## testing mailing list
testing:              "|/usr/lib/mailman/mail/mailman post testing"
testing-admin:        "|/usr/lib/mailman/mail/mailman admin testing"
testing-bounces:      "|/usr/lib/mailman/mail/mailman bounces testing"
testing-confirm:      "|/usr/lib/mailman/mail/mailman confirm testing"
testing-join:         "|/usr/lib/mailman/mail/mailman join testing"
testing-leave:        "|/usr/lib/mailman/mail/mailman leave testing"
testing-owner:        "|/usr/lib/mailman/mail/mailman owner testing"
testing-request:      "|/usr/lib/mailman/mail/mailman request testing"
testing-subscribe:    "|/usr/lib/mailman/mail/mailman subscribe testing"
testing-unsubscribe:  "|/usr/lib/mailman/mail/mailman unsubscribe testing"

Removing list info
Removing private archives
Removing private archives
Removing public archives
testing public archives not found as /var/lib/mailman/archives/public/testing.mbox

Catatan : 
Sebaiknya cek dulu keberadaan milis tersebut di sebelum dan sesudah penghapusan

Contoh cara menghapus milis Datacenter

[root@mail /]# cd /usr/lib/mailman/
[root@mail mailman]# bin/rmlist -a datacenter

To finish removing your mailing list, you must edit your /etc/aliases (or
equivalent) file by removing the following lines, and possibly running the
`newaliases' program:

## datacenter mailing list
datacenter:              "|/usr/lib/mailman/mail/mailman post datacenter"
datacenter-admin:        "|/usr/lib/mailman/mail/mailman admin datacenter"
datacenter-bounces:      "|/usr/lib/mailman/mail/mailman bounces datacenter"
datacenter-confirm:      "|/usr/lib/mailman/mail/mailman confirm datacenter"
datacenter-join:         "|/usr/lib/mailman/mail/mailman join datacenter"
datacenter-leave:        "|/usr/lib/mailman/mail/mailman leave datacenter"
datacenter-owner:        "|/usr/lib/mailman/mail/mailman owner datacenter"
datacenter-request:      "|/usr/lib/mailman/mail/mailman request datacenter"
datacenter-subscribe:    "|/usr/lib/mailman/mail/mailman subscribe datacenter"
datacenter-unsubscribe:  "|/usr/lib/mailman/mail/mailman unsubscribe datacenter"

Removing list info
Removing private archives
Removing private archives
Removing public archives
datacenter public archives not found as /var/lib/mailman/archives/public/datacenter.mbox

No comments:

Post a Comment