We seem to be having an odd pop3 issue with Cyrus under FreeBSD. We have 
installed:

cyrus-imapd-2.0.16_1 The cyrus mail server, supporting POP3 and IMAP4 protocols
cyrus-sasl-1.5.24_7 RFC 2222 SASL (Simple Authentication and Security Layer)
cyrus-sasl-1.5.24_8 RFC 2222 SASL (Simple Authentication and Security Layer)
cyrus-sasl-1.5.27_2 RFC 2222 SASL (Simple Authentication and Security Layer)

Basically, what happens is that every so often a pop3 connection fails. It 
seems like a connection is made, but then that's it:

$ telnet mail.example.com 110
Trying aa.bb.cc.dd..
Connected to mail.example.com
Escape character is '^]'.

This will just sit there for a while until I ^c. This occurs locally as well:

$ telnet localhost 110
Trying 127.0.0.1..
Connected to mail.example.com
Escape character is '^]'.

We have tcp_wrappers logging connections:

pop3: ALL :\
         spawn (/usr/bin/logger "accepted pop3 connect from %c (%a)") &

But nothing shows up in the logfile during this connection. (On regular, 
working connections, we will get a log entry.) At first, I thought it might 
be some odd DNS issue if Cyrus was trying to reverse map the client or 
something, but the localhost test seems to disprove that theory. (But I 
could be wrong.)

It appears that if I restart Cyrus the problem will clear up, although not 
always after just a single restart. It may take a few restarts or a few 
minutes; I haven't figured out the relationship yet.

Any ideas or troubleshooting that I can do? BTW, I am seeing this in our logs:

Apr 28 19:14:50 mars pop3d[13870]: accept failed: Software caused 
connection abort

However, this log entry was NOT created when I performed the testing above 
with telnet.

Regards, Dustin

cyrus.conf:

# cat cyrus.conf
# standard standalone server implementation

START {
   # do not delete these entries!
   mboxlist      cmd="ctl_mboxlist -r"
   deliver       cmd="ctl_deliver -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="imap" prefork=0
#  imaps                cmd="imapd -s" listen="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
}

EVENTS {
   # this is required
   checkpoint    cmd="ctl_mboxlist -c" period=30

   # this is only necessary if using duplicate delivery suppression
   delprune      cmd="ctl_deliver -E 3" period=1440
}

---
Dustin Puryear <[EMAIL PROTECTED]>
UNIX and Network Consultant
http://members.telocity.com/~dpuryear
PGP Key available at http://www.us.pgp.net
In the beginning the Universe was created.
This has been widely regarded as a bad move. - Douglas Adams

Reply via email to