From owner-freebsd-questions@FreeBSD.ORG Tue Jul 19 13:28:11 2005 Return-Path: X-Original-To: questions@freebsd.org Delivered-To: freebsd-questions@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 292EE16A41F for ; Tue, 19 Jul 2005 13:28:11 +0000 (GMT) (envelope-from gabor.kovesdan@t-hosting.hu) Received: from server.t-hosting.hu (server.t-hosting.hu [217.20.133.7]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9EF7E43D49 for ; Tue, 19 Jul 2005 13:28:10 +0000 (GMT) (envelope-from gabor.kovesdan@t-hosting.hu) Received: from localhost (localhost [127.0.0.1]) by server.t-hosting.hu (Postfix) with ESMTP id CD3FF997928; Tue, 19 Jul 2005 15:28:08 +0200 (CEST) Received: from server.t-hosting.hu ([127.0.0.1]) by localhost (server.t-hosting.hu [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 56200-07; Tue, 19 Jul 2005 15:28:05 +0200 (CEST) Received: from [80.98.156.20] (catv-50629c14.catv.broadband.hu [80.98.156.20]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by server.t-hosting.hu (Postfix) with ESMTP id 26B2E997924; Tue, 19 Jul 2005 15:28:05 +0200 (CEST) Message-ID: <42DCFFE4.9080602@t-hosting.hu> Date: Tue, 19 Jul 2005 15:28:04 +0200 From: =?ISO-8859-1?Q?K=F6vesd=E1n_G=E1bor?= User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Kelly References: <42DCE5C9.2060002@t-hosting.hu> <865F9A0C-9977-44A8-AEB7-E1F61BAEF16B@hiwaay.net> In-Reply-To: <865F9A0C-9977-44A8-AEB7-E1F61BAEF16B@hiwaay.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: amavisd-new at t-hosting.hu Cc: FreeBSD Questions Subject: Re: Courier-IMAPD problem with fam(d) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2005 13:28:11 -0000 David Kelly wrote: > > On Jul 19, 2005, at 6:36 AM, Kövesdán Gábor wrote: > >> >> The mail/courier-imap port installs famd as a dependency, but You >> have to manually configure and start it. Take a look at /usr/local/ >> etc/fam.conf. > > > I don't see anything about starting there or in fam(1M) other than > "if fam is started by inetd". > Honestly speaking I don't know how to start it. Maybe inetd starts it, maybe courier-imap or You might start it manually?! Unfortunately I dont have such problems You have without fam. But if You have found out please let me know, I'm interested. :) >> Anyway, this is a deficiency in the new versions of courier-imap. >> There isn't some kind of --without-fam configure options, the new >> versions require fam. > > > /usr/ports/mail/courier-imap/Makefile says fam is disabled by default: > > OPTIONS= OPENSSL "Build with OpenSSL > support" on \ > FAM "Build in fam support for IDLE > command" off \ > DRAC "Build in DRAC > support" off \ > TRASHQUOTA "Include deleted mails in the > quota" off \ > GDBM "Use gdbm db instead of system > bdb" off \ > IPV6 "Build with IPv6 > support" on > If You take a look what the WITH_FAM macro actually does, You'll see it only adds fam as a dependency and adds some extra cc flags, but leave the CONFIGURE_ARGS untouched. Afaik fam can't be actually disabled in courier-imap. .if defined(WITH_FAM) || exists(${LOCALBASE}/lib/libfam.so) CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="${LDFLAGS}" LDFLAGS+= -L${LOCALBASE}/lib LIB_DEPENDS+= fam.0:${PORTSDIR}/devel/fam .endif > I suspect but haven't been able to prove fam is somehow running, if > only as a library linked to imapd. When Mail.app has "connection" > problems its instantly disconnected but sometimes a few messages get > thru. Sometimes a simple ssh to the FreeBSD machine, mutt to view the > mailbox, close it with messages now tagged as old, is all it takes > for Mail.app and courier-imap combination to be happy. Likely there is the libfam.so linked, as You can see above, but that is only a prerequisite to use famd. Famd must be running as a separate process and courier-imap connects to famd with the help of libfam. Cheers, Gábor Kövesdán