Date: Fri, 16 Jul 2010 12:43:22 +0300 From: "Reko Turja" <reko.turja@liukuma.net> To: "Jeremy Chadwick" <freebsd@jdc.parodius.com> Cc: "Mikhail T." <mi+thun@aldan.algebra.com>, freebsd-stable@freebsd.org, Henrik /KaarPoSoft <henrik@kaarposoft.dk> Subject: Re: openldap client GSSAPI authentication segfaults in fbsd8stablei386 Message-ID: <EF24D143F0AF49AD9B27F838AFA0A6F4@rivendell> In-Reply-To: <20100716092512.GA99365@icarus.home.lan> References: <4C3CC831.7040005@kaarposoft.dk> <20100713210729.GA11943@icarus.home.lan> <0228E401B70A4023A6F86A2ADAE59EF9@rivendell> <008D0251AE4F4A2DBAA1369410565B61@rivendell> <20100715162251.GA73929@icarus.home.lan> <20100716083617.GA97981@icarus.home.lan> <3FE6787E5CAC4C108C031CA6C8044FE4@rivendell> <20100716092512.GA99365@icarus.home.lan>
next in thread | previous in thread | raw e-mail | index | archive | help
> This doesn't help. The problem is that Cyrus imapd is completely
> freaking out, continually dying and re-forking itself, with my
> kernel
> message buffer filling rapidly + all.log filling. So, there is
> further
> configuration of this daemon that's needed (meaning it does not work
> "straight out of the box"), and I need those configuration details.
Below is the relevant parts of my config that should get you going:
my /usr/local/etc/cyrus.conf:
START {
# do not delete this entry!
recover cmd="ctl_cyrusdb -r"
# this is only necessary if using idled for IMAP IDLE
idled cmd="idled"
}
# UNIX sockets start with a slash and are put into /var/imap/socket
SERVICES {
# add or remove based on preferences
imap cmd="imapd -C /usr/local/etc/imapd.conf" listen="imap"
prefork=0
# pop3 cmd="pop3d" listen="pop3" prefork=0
# pop3s cmd="pop3d -s" listen="pop3s" prefork=0
sieve cmd="timsieved" listen="sieve" prefork=0
# at least one LMTP is required for delivery
# lmtp cmd="lmtpd" listen="lmtp" prefork=0
lmtpunix cmd="/usr/local/cyrus/bin/lmtpd"
listen="/var/imap/socket/lmtp" prefork=0
# this is only necessary if using notifications
notify cmd="notifyd" listen="/var/imap/socket/notify"
proto="udp" prefork=1
}
EVENTS {
# this is required
checkpoint cmd="ctl_cyrusdb -c" period=30
# this is only necessary if using duplicate delivery suppression
delprune cmd="cyr_expire -E 3" at=0400
# this is only necessary if caching TLS sessions
tlsprune cmd="tls_prune" period=1440
}
And /usr/local/etc/imapd.conf
#
# $FreeBSD: ports/mail/cyrus-imapd2/files/imapd.conf,v 1.8 2002/08/08
14:06:48 ume Exp $
#
# Sample configurations file for Cyrus IMAPd
# Most lines in this file are commented; in this case the default is
used.
# The commented lines (usually) contain the default value
configdirectory: /var/imap
partition-default: /usr/local/imap
unixhierarchysep: yes
lmtp_downcase_rcpt: yes
imap_allowanonymouslogin: no
sieve_allowanonymouslogin: no
imap_allowplaintext: no
sieve_allowplaintext: yes
imapidresponse: yes
admins: cyrus toor
autocreatequota: -128
duplicatesuppression: yes
sendmail: /usr/local/sbin/sendmail
postmaster: postmaster
sieve_maxscripts: 15
sasl_maximum_layer: 256
sasl_minimum_layer: 0
sasl_pwcheck_method: saslauthd
sasl_auto_transition: yes
lmtpsocket: /var/imap/socket/lmtp
idlesocket: /var/imap/socket/idle
notifysocket: /var/imap/socket/notify
#
# EOF
In addition, check that you have the following directories created +
run the mkimap for creating the rest of directories/db's
Create the configuration directory specified by the "configdirectory"
option in "imapd.conf." The configuration directory is similar in
concept to the "/usr/lib/news" directory. It stores information about
the IMAP server as a whole.
This document uses the configuration directory "/var/imap" in its
examples. This directory should be owned by the cyrus user and group
and should not permit access to other users.
cd /var
mkdir imap
chown cyrus imap
chgrp mail imap
chmod 750 imap
Create the default partition directories specified in the
"/etc/imapd.conf" file.
This document uses a default partition directory of "/var/spool/imap"
in the following example:
cd /var/spool
mkdir imap
chown cyrus imap
chgrp mail imap
chmod 750 imap
Change to the Cyrus user and use the tool "tools/mkimap" to create the
rest of the directories (subdirectories of the directories you just
created).
su cyrus
tools/mkimap
exit
Hope this helps
-Reko
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EF24D143F0AF49AD9B27F838AFA0A6F4>
