Skip site navigation (1)Skip section navigation (2)
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=20
> kernel
> message buffer filling rapidly + all.log filling.  So, there is=20
> 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=3D"ctl_cyrusdb -r"

  # this is only necessary if using idled for IMAP IDLE
  idled         cmd=3D"idled"
}

# UNIX sockets start with a slash and are put into /var/imap/socket
SERVICES {
  # add or remove based on preferences
  imap         cmd=3D"imapd -C  /usr/local/etc/imapd.conf" =
listen=3D"imap"=20
prefork=3D0
#  pop3         cmd=3D"pop3d" listen=3D"pop3" prefork=3D0
#  pop3s                cmd=3D"pop3d -s" listen=3D"pop3s" prefork=3D0
  sieve         cmd=3D"timsieved" listen=3D"sieve" prefork=3D0

  # at least one LMTP is required for delivery
#  lmtp         cmd=3D"lmtpd" listen=3D"lmtp" prefork=3D0
  lmtpunix      cmd=3D"/usr/local/cyrus/bin/lmtpd"=20
listen=3D"/var/imap/socket/lmtp" prefork=3D0

  # this is only necessary if using notifications
  notify        cmd=3D"notifyd" listen=3D"/var/imap/socket/notify"=20
proto=3D"udp" prefork=3D1
}

EVENTS {
  # this is required
  checkpoint    cmd=3D"ctl_cyrusdb -c" period=3D30

  # this is only necessary if using duplicate delivery suppression
  delprune      cmd=3D"cyr_expire -E 3" at=3D0400


  # this is only necessary if caching TLS sessions
  tlsprune      cmd=3D"tls_prune" period=3D1440
}


And /usr/local/etc/imapd.conf

#
# $FreeBSD: ports/mail/cyrus-imapd2/files/imapd.conf,v 1.8 2002/08/08=20
14:06:48 ume Exp $
#
# Sample configurations file for Cyrus IMAPd
# Most lines in this file are commented; in this case the default is=20
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 +=20
run the mkimap for creating the rest of directories/db's

Create the configuration directory specified by the "configdirectory"=20
option in "imapd.conf." The configuration directory is similar in=20
concept to the "/usr/lib/news" directory. It stores information about=20
the IMAP server as a whole.
This document uses the configuration directory "/var/imap" in its=20
examples. This directory should be owned by the cyrus user and group=20
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=20
"/etc/imapd.conf" file.
This document uses a default partition directory of "/var/spool/imap"=20
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=20
rest of the directories (subdirectories of the directories you just=20
created).
   su cyrus
   tools/mkimap
   exit

Hope this helps

-Reko=20




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?EF24D143F0AF49AD9B27F838AFA0A6F4>