$OpenBSD: README-server,v 1.4 2019/05/01 13:41:20 danj Exp $

+-----------------------------------------------------------------------
| Running dovecot on OpenBSD
+-----------------------------------------------------------------------

By default, the _dovecot user, and so the Dovecot processes run in
the login(1) class of "daemon". The default limits on file descriptors
are insufficient to run Dovecot; instead you should put the _dovecot
user and processes in their own login(1) class with tuned resources.

For example, add this to the login.conf(5) file:

       dovecot:\
                :openfiles-cur=1024:\
                :openfiles-max=2048:\
                :tc=daemon:

Rebuild the login.conf.db file if necessary:

	# [ -f /etc/login.conf.db ] && cap_mkdb /etc/login.conf

For larger servers these numbers and memory limits (e.g. datasize
and stacksize) may also need to be increased. Please report any
changes and experiences to the package maintainers so that we can
update this file for future versions.
