Re: Cyrrus-imap with generic error
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=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>, 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 [EMAIL PROTECTED]: userPassword [EMAIL PROTECTED]: 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.01 Jan 10 03:27:09 c1529030-a ctl_cyrusdb[39754]: archiving log file: /var/imap/db/log.01 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 [EMAIL PROTECTED] ___ [EMAIL PROTECTED] mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Cyrrus-imap with generic error
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=<[EMAIL PROTECTED]>, orig_to=<[EMAIL PROTECTED]>, 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 [EMAIL PROTECTED]: userPassword [EMAIL PROTECTED]: 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.01 Jan 10 03:27:09 c1529030-a ctl_cyrusdb[39754]: archiving log file: /var/imap/db/log.01 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 -- -Ryan Merrick [EMAIL PROTECTED] #cat /usr/local/lib/sasl2/Cyrus.conf pwcheck_method auxprop #cat /usr/local/lib/sasl2/smtpd.conf pwcheck_method auxprop #ll /usr/lib/sasl2 lrwxr-xr-x 1 root wheel 20 Jan 8 01:34 /usr/lib/sasl2 -> /usr/local/lib/sasl2 #ll /var/imap/socket/ total 0 srwxrwxrwx 1 root cyrus 0 Jan 10 03:27 lmtp #cat /usr/local/etc/imapd.conf configdirectory: /var/imap partition-default: /var/spool/imap servername: cell.attbi.com allowanonymouslogin: yes allowplaintext: yes admins: admin singleinstancestore: yes duplicatesuppression: yes sieveusehomedir: false sievedir: /var/imap/sieve sendmail: /usr/local/sbin/sendmail sasl_minimum_layer: 0 sasl_pwcheck_method: auxprop lmtpsocket: /var/imap/socket/lmtp #cat /usr/local/etc/cyrus.conf # standard standalone server implementation START { # do not delete this entry! recover cmd="ctl_cyrusdb -r" # this is only necessary if using idled for IMAP IDLE # idledcmd="idled" } # UNIX sockets start with a slash and are put into /var/imap/socket SERVICES { # add or remove based on preferences imap cmd="imapd" listen="10.1.1.1:imap" prefork=0 imaps cmd="imapd -s" listen="10.1.1.1:imaps" 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="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 checkpointcmd="ctl_cyrusdb -c" period=30 # this is only necessary if using duplicate delivery suppression delprune cmd="ctl_deliver -E 3" at=0400 # this is only necessary if caching TLS sessions tlsprune cmd="tls_prune" at=0400 } #cat /usr/local/etc/