Saslauthd Crash - Size Read Failed

Lee Hoffman lee_hoffman at brown.edu
Sun Sep 15 20:02:03 EDT 2002


Hey All,
I have openssl-0.9.6b-28 / cyrus-imapd-2.1.5 / cyrus-sasl-2.1.7 /
db-4.0.14 / pam_ldap-151 installed on a RH7.3 box. I'm using
cyrus->sasl->pam->ldap for authentication. 
 
Everything is setup and when I start cyrus and saslauthd I'm able to
login to an imap account read mail etc. for 2 or 3 minutes. Then all of
a sudden my username and password stop working (I get the
username/password prompt in outlook). I check the server and it turns
out saslauthd has disappeared (died). If I restart cyrus and saslauthd,
everything works again. The above happens everytime I run cyus and
saslauthd. Here's what auth.log shows:
 
# Start Cyrus and Sasl - Everything works fine
Sep 15 13:15:49 bicep saslauthd[14996]: START: saslauthd 2.1.7
Sep 15 13:15:50 bicep saslauthd[15003]: master PID is: 15003
Sep 15 13:15:50 bicep saslauthd[15003]: daemon started, listening on
/var/run/saslauthd/mux
# These messages popup and authentication stops working
Sep 15 13:18:33 bicep imapd[15023]: size read failed
Sep 15 13:18:38 bicep imapd[15023]: size read failed
Sep 15 13:24:37 bicep imapd[15071]: size read failed
Sep 15 13:25:09 bicep imapd[15071]: size read failed
Sep 15 13:25:20 bicep imapd[15024]: size read failed
# Saslauthd has now died - logging in now always fails
Sep 15 13:25:32 bicep imapd[15024]: cannot connect to saslauthd server:
Connection refused
Sep 15 13:28:38 bicep imapd[15169]: cannot connect to saslauthd server:
Connection refused
Sep 15 13:28:41 bicep imapd[15022]: cannot connect to saslauthd server:
Connection refused
Sep 15 13:28:44 bicep imapd[15012]: cannot connect to saslauthd server:
Connection refused
Sep 15 13:28:47 bicep imapd[15169]: cannot connect to saslauthd server:
Connection refused
Sep 15 13:28:50 bicep imapd[15012]: cannot connect to saslauthd server:
Connection refused
 
So it appears that "size read failed" is crashing the server. 
 
I compiled sasl with the following command: 
./configure --enable-plain --disable-krb4
--with-saslauthd=/var/run/saslauthd --with-pam
 
I compiled imapd with the following command:
export CPPFLAGS="-I/usr/include/et"; 
./configure --with-sasl=/usr/local/lib --with-perl --with-auth=unix
--with-ssl -with-dbdir=/usr/local/BerkeleyDB.4.0
 
 
Anyone have any ideas? My config files are included below.
 
Thanks,
Lee
 
------------------------------------------------------------------------
---------------------------------------------
 
My imapd.conf:
 
# Cyrus Imapd Configuration
 
configdirectory: /export/cyrus/imap
partition-default: /export/cyrus/spool/imap
admins: admin
#sasl_pwcheck_method: pam
 
tls_cert_file: /export/cyrus/server.pem
tls_key_file: /export/cyrus/server.pem
 
allowanonymouslogin: no
allowplaintext: yes
sasl_mech_list: PLAIN
servername: localhost
autocreatequota: 10000
reject8bit: no
quotawarn: 90
timeout: 30
poptimeout: 10
dracinterval: 0
drachost: localhost
sasl_pwcheck_method: saslauthd
#sievedir: /usr/sieve
#sendmail: /usr/sbin/sendmail
#sieve_maxscriptsize: 32
#sieve_maxscripts: 5
 
# Get rid of folders as subfolders of INBOX
altnamespace: yes 
unixhierarchysep: yes
 
---------------------------------------------------------------------
 
My 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/sockets
SERVICES {
  # add or remove based on preferences
  imap          cmd="imapd" listen="imap" prefork=5
  imaps         cmd="imapd -s" listen="imaps" prefork=1
  # pop3                cmd="pop3d" listen="pop3" prefork=3
  # pop3s               cmd="pop3d -s" listen="pop3s" prefork=1
  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=1
   lmtpunix     cmd="lmtpd" listen="/export/cyrus/imap/socket/lmtp"
prefork=1
#   lmtpunix     cmd="lmtpd"
listen="/export/cyrus/postfix/spool/private/lmtp" prefork=1
 
  # 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" period=1440
 
  # this is only necessary if caching TLS sessions
  tlsprune      cmd="tls_prune" period=1440
}
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.andrew.cmu.edu/mailman/private/info-cyrus/attachments/20020915/5ce65c00/attachment.html


More information about the Info-cyrus mailing list