Suggest that users may need to increase login.conf limits for Dovecot.

From Brad, adjusted slightly to specifically mention full-text search
indexing which is likely to need a larger-than-default datasize.
This commit is contained in:
sthen 2012-07-01 10:26:34 +00:00
parent 731bee596d
commit a32a27a554
3 changed files with 31 additions and 2 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.189 2012/06/08 23:55:17 sthen Exp $
# $OpenBSD: Makefile,v 1.190 2012/07/01 10:26:34 sthen Exp $
SHARED_ONLY= Yes
@ -14,6 +14,7 @@ V_DOVECOT= 2.1.7
DISTNAME= dovecot-${V_DOVECOT}
PKGNAME= dovecot-${V_DOVECOT}
PKGNAME-server= dovecot-${V_DOVECOT}
REVISION-server= 0
PKGNAME-ldap= dovecot-ldap-${V_DOVECOT}
PKGNAME-mysql= dovecot-mysql-${V_DOVECOT}
PKGNAME-postgresql= dovecot-postgresql-${V_DOVECOT}

View File

@ -1,4 +1,4 @@
@comment $OpenBSD: PLIST-server,v 1.31 2012/06/08 22:04:10 sthen Exp $
@comment $OpenBSD: PLIST-server,v 1.32 2012/07/01 10:26:35 sthen Exp $
@conflict dovecot-sqlite-*
@pkgpath mail/dovecot
@pkgpath mail/dovecot,-server,bdb
@ -702,6 +702,7 @@ share/doc/dovecot/wiki/WhyDoesItNotWork.txt
share/doc/dovecot/wiki/maildrop.txt
share/doc/dovecot/wiki/mutt.txt
share/doc/dovecot/wiki/uw2dovecot.sh.txt
share/doc/pkg-readmes/${FULLPKGNAME}
share/examples/dovecot/
share/examples/dovecot/dovecot-openssl.cnf
@sample /etc/ssl/dovecot-openssl.cnf

View File

@ -0,0 +1,27 @@
$OpenBSD: README-server,v 1.1 2012/07/01 10:26:35 sthen Exp $
+-----------------------------------------------------------------------
| Running ${FULLPKGNAME} on OpenBSD
+-----------------------------------------------------------------------
By default, the _dovecot user, and so the Dovecot processes run in
the login(1) class of "daemon". On a busy server, it may be advisable
to put the _dovecot user and processes in their own login(1) class
with tuned resources, such as more open file descriptors etc.
For example, add this to the login.conf(5) file:
dovecot:\
:openfiles-cur=512:\
: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. In particular, indexing
emails for full-text search is likely to need an increased datasize.
Please report any changes and experiences to the package maintainers
so that we can update this file for future versions.