Moving from Google Groups to Mailman

Recently we moved our mailing list from Google Groups to Mailman Free Software mailing list manager. The decision was taken cause we need more control on our mailing list and Google Groups is proprietary software.

Setting up mailman wasn’t that hard. The hardest part is to get our whole archive transfered from Google Groups to our Mailman server.

The point was to get an mbox of all our messages, which will later be copied above the new .mbox file in Mailman. To get the messages, I used an IMAP server which has a directory with the stored threads from our mailing list, and the getmail tool.

First install getmail:
apt-get install getmail4

Create the getmail rc file in ~/.getmail/getmail.rc:

[retriever]
type = SimpleIMAPSSLRetriever
server = imap.gmail.com
username = username
password = password
mailboxes = ("MAILING-LIST-DIRECTORY-NAME",)

[destination]
type = Mboxrd
path = ~/your-mailing-list-name.mbox

Create the mbox file:

touch ~/your-mailing-list-name.mbox

Then run the getmail tool:

getmail -r ~/.getmail/getmail.rc

The resulted mbox file should be copied to your Mailman server (on Debian/Ubuntu I believe it’s in /var/lib/mailman/archives/private/ ), after it just run mmarc with --wipe.
mmarch --wipe your-mailing-list-name /var/lib/mailman/archives/private/your-mailing-list-name.mbox

That’s all folks, now your archives should be totally transfered.

5 thoughts on “Moving from Google Groups to Mailman

  1. So does this work for any Google Group which I manage? I’m looking to archive my Google Group to a .mbox file. Or do I need to setup an IMAP server?

    Thanks!

  2. @alec,
    if you are moving from Google Groups, than all you need is an mbox with the archive of your mailing list. You need no imap server, if the email account you were using already offers imap access.

    Just use `getmail` to download the archives as an mbox file and feed that to mailman.
    Thats all!

  3. Pingback: 导出 Google Groups | the rhythm

Lasă un răspuns

Adresa ta de email nu va fi publicată. Câmpurile necesare sunt marcate *

*

Poți folosi aceste etichete HTML și atribute: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>