Kerio Archiver for user mailboxes


2014/12/14

I wrote about IMAP tools recently. When I saw how well the imapfiler.pl tool worked, I contacted the author to suggest that he write a specific tool to archive Kerio user mailboxes. He agreed, and we worked on it together over the next few days.

One of the problems we ran into was in trying to avoid the need to have user passwords. IMAP does support an administrative login method that should allow that, but we couldn't make it work with Kerio Connect - it would authenticate, but it wouldn't access other users messages.

I knew there was a way to do this because Connect has a "Master Authentication" password in Advanced Options and Kerio uses that with its own tools. For years I have tried to get documentation on that, but no one at Kerio would tell me. However, last year there was this post where somone had exposed the secret.. It's a fairly simple matter, actually: you send an IMAP command of "X-MASTERAUTH". The server sends back a challenge string, to which you add the Master Password that was set in Advanced Options. You send that back as a md5_hex string and you are now logged in. To access a particular user's mailboxes, you send "X-SETUSER userlogin" and you are in.

So, with that in hand, it's possible to write an user archiver for Kerio. I'm happy to say that archiver is available now at http://www.athensfbc.com/imap-tools/Kerio/Kerio_Archiver.html for just $50.00. Note that it is being sold and supported by Rick Sanders, not by me - contact him through that web page if you have any questions.

Sample output

In testing, I did find one potential glitch: if a mailbox is corrupt, the archiver may skip some messages. I had that problem with my wife's INBOX - there are 49 messages that the archive script just cannot see even after rebuilding her indexes.

I found no problems in other mailboxes and no bugs in testing.



Got something to add? Send me email.





(OLDER) <- More Stuff -> (NEWER)    (NEWEST)   

Printer Friendly Version

-> -> Kerio Archiver




Increase ad revenue 50-250% with Ezoic


More Articles by

Find me on Google+

© Anthony Lawrence



Kerio Connect Mailserver

Kerio Samepage

Kerio Control Firewall

Have you tried Searching this site?

Unix/Linux/Mac OS X support by phone, email or on-site: Support Rates

This is a Unix/Linux resource website. It contains technical articles about Unix, Linux and general computing related subjects, opinion, news, help files, how-to's, tutorials and more.

Contact us





Everyone knows that debugging is twice as hard as writing a program in the first place. So if you're as clever as you can be when you write it, how will you ever debug it? (Brian Kernighan)

Don't blame me for the fact that competent programming, as I view it as an intellectual possibility, will be too difficult for "the average programmer" — you must not fall into the trap of rejecting a surgical technique because it is beyond the capabilities of the barber in his shop around the corner. (Edsger W. Dijkstra)







This post tagged: