Skip to content

Mail Server Dovecot

Lucas Holt edited this page Aug 21, 2022 · 1 revision

Dovecot is an IMAP and POP3 server. It can authenticate via pam or LDAP.

Installation Install from package:

mport install dovecot install from mports:

cd /usr/mports/mail/dovecot; make install clean

Next edit the configuration as needed in /usr/local/etc/dovecot

You will want to setup TLS. Let's encrypt certificates will work for this so you can use the py-certbot port to manage that.

Enable it in /etc/rc.conf with

sysrc dovecot_enable=YES

In particular, there are several authentication methods and if you are also planning to use postfix, it's possible to have postfix auth against dovecot rather than setting up saslauthd.

Common errors Dovecot: Error: mmap failed with file … dovecot.index.cache: Cannot allocate memory

This error usually indicates that your mailbox is larger than can be loaded into the memory limit.

Solution:

Modify /usr/local/etc/dovecot/conf.d/10-master.conf

Increase the value for

default_vsz_limit = 512M