From owner-freebsd-questions@FreeBSD.ORG Tue Jan 13 02:24:39 2004 Return-Path: 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 94F7616A4CE for ; Tue, 13 Jan 2004 02:24:39 -0800 (PST) Received: from mx1.heronetwork.com (mail.heronetwork.com [216.254.62.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9AAE043D2D for ; Tue, 13 Jan 2004 02:24:37 -0800 (PST) (envelope-from sandshrimp@comcast.net) Received: by mx1.heronetwork.com (Postfix, from userid 1003) id 2115AA5220; Tue, 13 Jan 2004 02:24:37 -0800 (PST) Received: from comcast.net (12-228-104-137.client.attbi.com [12.228.104.137]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mx1.heronetwork.com (Postfix) with ESMTP id 995E1A4E9F for ; Tue, 13 Jan 2004 02:24:35 -0800 (PST) Message-ID: <4003C777.8050401@comcast.net> Date: Tue, 13 Jan 2004 02:24:55 -0800 From: "W. Ryan Merrick" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.5) Gecko/20031218 X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: freebsd-questions@freebsd.org References: <3FFFE957.4010901@comcast.net> In-Reply-To: <3FFFE957.4010901@comcast.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.60 (1.212-2003-09-23-exp) on nott.heronetwork.com X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.60 Subject: Re: Cyrrus-imap with generic error X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jan 2004 10:24:39 -0000 W. Ryan Merrick wrote: > hello, > > I have been fighting this for a while. I am trying to setup > Postfix-2.0.16+cyrus-Imap-2.1.16_1+cyrus-sasl-2.1.17_1 on my FreeBSD 4.9 > Stable server's inside NIC. > > Postfix is configured with: sasl2, TLS, BDB_ver 40 > cyrus-imapd2' => '--with-sasl --with-openssl WITH_BDB_VER=4' > cyrus-sasl2' => '--with-openssl WITH_BDB_VER=4 --enable-auth-sasldb > --enable-login' > > Postfix runs fine by itself It complains that: > > Jan 10 02:47:22 c1529030-a postfix/pipe[35530]: 51BDF4113: > to=, orig_to=, relay=cyrus, > delay=9701, status=deferred (temporary failure. Command output: couldn't > connect to lmtpd: Connection refused_ 421 4.3.0 deliver: couldn't > connect to lmtpd_ ) > > I know that the lmtpd socket is also handled by cyrus imap to deliver > the mail to the cyrus mailboxes that the admin sets up in cyradm. > > #ll /var/imap/socket/ > srwxrwxrwx 1 root cyrus 0 Jan 10 03:17 lmtp > > Sasl has two users one admin and one user with passwords > #sasldblistusers2 > admin@attbi.com: userPassword > wrmine@attbi.com: userPassword > > When I run /usr/local/cyrus/bin/master > > I get this output in /var/log/cyrus.imap > Jan 10 03:27:09 c1529030-a master[39752]: process started > Jan 10 03:27:09 c1529030-a master[39753]: about to exec > /usr/local/cyrus/bin/ctl_cyrusdb > Jan 10 03:27:09 c1529030-a ctl_cyrusdb[39753]: recovering cyrus databases > Jan 10 03:27:09 c1529030-a ctl_cyrusdb[39753]: done recovering cyrus > databases > Jan 10 03:27:09 c1529030-a master[39752]: servname not supported for > ai_socktype, disabling lmtp > Jan 10 03:27:09 c1529030-a master[39752]: ready for work > Jan 10 03:27:09 c1529030-a master[39754]: about to exec > /usr/local/cyrus/bin/ctl_cyrusdb > Jan 10 03:27:09 c1529030-a ctl_cyrusdb[39754]: checkpointing cyrus > databases > Jan 10 03:27:09 c1529030-a ctl_cyrusdb[39754]: archiving database file: > /var/imap/mailboxes.db > Jan 10 03:27:09 c1529030-a ctl_cyrusdb[39754]: archiving log file: > /var/imap/db/log.0000000001 > Jan 10 03:27:09 c1529030-a ctl_cyrusdb[39754]: archiving log file: > /var/imap/db/log.0000000001 > Jan 10 03:27:09 c1529030-a ctl_cyrusdb[39754]: done checkpointing cyrus > databases > Jan 10 03:27:09 c1529030-a master[39752]: process 39754 exited, status 0 > > > When I attempt to access cyradmin with: > cyradm --user admin -auth plain cell.attbi.com > > I get a high volume of repeating logs. (about 20 lines a second) > > Jan 10 03:30:51 c1529030-a imap[39987]: executed > Jan 10 03:30:51 c1529030-a imapd[39987]: SASL failed initializing: > sasl_server_init(): generic failure > Jan 10 03:30:51 c1529030-a master[39752]: process 39987 exited, status 1 > Jan 10 03:30:51 c1529030-a master[39988]: about to exec > /usr/local/cyrus/bin/imapd > > Until I kill master. At which point I get my login prompt. > > #cyradm --user admin -auth plain cell.attbi.com > IMAP Password:Broken pipe > > I have googled everything I from the logs with no hints. > I dont know where I went wrong. I have tried cvsuping and rebuilding all > the packages a few times in the last month. > > Configs and files follow Found the problem I was having in sasl.h The config files in #/usr/local/lib/sasl2 need to be readonly. -- -Ryan Merrick sandshrimp@comcast.net