From owner-freebsd-questions@FreeBSD.ORG Sat Jan 10 04:00:24 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 7AA3616A4CE for ; Sat, 10 Jan 2004 04:00:24 -0800 (PST) Received: from mx1.heronetwork.com (mail.heronetwork.com [216.254.62.176]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9AE6A43D55 for ; Sat, 10 Jan 2004 04:00:21 -0800 (PST) (envelope-from sandshrimp@comcast.net) Received: by mx1.heronetwork.com (Postfix, from userid 1003) id F293DA5250; Sat, 10 Jan 2004 04:00:20 -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 D2533A519F for ; Sat, 10 Jan 2004 04:00:17 -0800 (PST) Message-ID: <3FFFE957.4010901@comcast.net> Date: Sat, 10 Jan 2004 04:00:23 -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 To: freebsd-questions@freebsd.org 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.8 required=8.0 tests=DONT_DELETE autolearn=no version=2.60 Subject: 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: Sat, 10 Jan 2004 12:00:24 -0000 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 -- -Ryan Merrick sandshrimp@comcast.net #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 # idled cmd="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 checkpoint cmd="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/postfix/main.cf # LOCAL PATHNAME INFORMATION queue_directory = /var/spool/postfix command_directory = /usr/local/sbin daemon_directory = /usr/local/libexec/postfix # QUEUE AND PROCESS OWNERSHIP mail_owner = postfix # INTERNET HOST AND DOMAIN NAMES myhostname = cell.attbi.com mydomain = attbi.com # SENDING MAIL myorigin = $myhostname # RECEIVING MAIL inet_interfaces = $myhostname, localhost mydestination = $myhostname, localhost.$mydomain # REJECTING MAIL FOR UNKNOWN LOCAL USERS local_recipient_maps = unix:passwd.byname $alias_maps unknown_local_recipient_reject_code = 450 # TRUST AND RELAY CONTROL mynetworks_style = host # ALIAS DATABASE alias_maps = hash:/usr/local/etc/postfix/aliases alias_database = dbm:/usr/local/etc/postfix/aliases # DELIVERY TO MAILBOX #home_mailbox = Mailbox #home_mailbox = Maildir/ mail_spool_directory = /var/spool/mail mailbox_transport = lmtp:unix:/var/imap/socket/lmtp #mailbox_transport = cyrus # SHOW SOFTWARE VERSION OR NOT smtpd_banner = $myhostname ESMTP $mail_name # # INSTALL-TIME CONFIGURATION INFORMATION sendmail_path = /usr/local/sbin/sendmail newaliases_path = /usr/local/bin/newaliases mailq_path = /usr/local/bin/mailq setgid_group = maildrop manpage_directory = /usr/local/man sample_directory = /usr/local/etc/postfix Readme_directory = no readme_directory = no #broken_sasl_auth_clients = yes smtpd_sasl2_auth_enable = yes