Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Jan 2004 02:24:55 -0800
From:      "W. Ryan Merrick" <sandshrimp@comcast.net>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Cyrrus-imap with generic error
Message-ID:  <4003C777.8050401@comcast.net>
In-Reply-To: <3FFFE957.4010901@comcast.net>
References:  <3FFFE957.4010901@comcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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=<wrmine@cell.attbi.com>, orig_to=<root@cell.attbi.com>, 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



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