Enable compression on Dovecot storage

I’ve just discovered than compression can be applied on Dovecot mail storage. Truth is I used to run the delivery via Postfix. Now that I use OpenSMTPD and Dovecot LMTP to deliver the mail, those can be compressed for write (LMTP) and read (IMAP) process. Here’s how.

Continue reading “Enable compression on Dovecot storage”

OpenSMTPD, Dovecot and ldapd on OpenBSD 5.7

Looking to replace my old Postfix/Dovecot configuration with more native OpenBSD stuff, I finally ended with a configuration than seems suitable to me. I’ll be hosting virtual users and mail aliases in ldapd(8), smtpd(8) will deal with email receiving/sending and dovecot(1) will be in charge of email delivery using LMTP and email reading using IMAP. Of course, spamd(8) will do a bit of work in front of OpenSMTPD. All of those will run on OpenBSD 5.7.
Continue reading “OpenSMTPD, Dovecot and ldapd on OpenBSD 5.7”

Monitor Dovecot with Munin on OpenBSD

At the time of writing, Munin on OpenBSD doesn’t come with a dovecot dedicated plugin. I’m not sure it even comes with an IMAP plugin. Anyway, you can get one from the “Munin plugin repository” and run it on your BSD box.

Here’s how:
Continue reading “Monitor Dovecot with Munin on OpenBSD”

My IMAP cheat sheet

When I want to check if an IMAP server is working properly, I telnet it and run basics commands.
Here are (IMAP) commands that I keep using.


Either connect to the IMAP (clear text) port:

# telnet FQDN 143

Or connect to the TLS IMAP port:

# openssl s_client -connect FQDN:993

In both case, the server should reply something like:


when it is ready to play with you.
Continue reading “My IMAP cheat sheet”

Migrate your IMAP data

On my way to move from Zarafa to SOGo, I needed a way to migrate my e-mail between the two systems. Both provides IMAP capabilites and that’s the service I’m gonna use to move the data.

You can either copy/move the e-mail manually using your favorite IMAP client or automate the migration using imapsync.
Continue reading “Migrate your IMAP data”