Hi Folks,
on an OpenBSD 4.5 system upgraded many times (from 3.9, perhaps), I have the
problem that when I try to use sieveshell to connect to a timsieved daemon to
administer my sieve scripts, I get prompted for a password, and then things hang...
I have the following cyrus packages installed:
-snip-
[r...@dna ~]# pkg_info | grep cyrus
cyrus-imapd-2.3.13 Cyrus IMAP server
cyrus-imapd-perl-2.3.13 perl utils for the Cyrus IMAP server
cyrus-sasl-2.1.22p4 RFC 2222 SASL (Simple Authentication and Security Layer)
-snip-
I have also tried talking to a timsieved directly on port localhost:2000,
without success, which leads me to believe that the problem lies with timsieved
or beyond. I can authenticate myself successfully, but neither a NOOP nor a
LISTSCRIPTS command produces not result.
This used to work, but I'm not sure when I used it last. Maybe before the
upgrade to v4.5.
Does anyone have any idea why this might be happening?
Rob Urban
==========================================================================================
ktrace of the timsieved (starting when sieveshell sends the answer to the
challenge, and ignoring mprotect and sigprocmask) shows:
32751 timsieved GIO fd 0 read 8 bytes
"{352+}\r
"
32751 timsieved RET read 8
32751 timsieved GIO fd 0 read 354 bytes
"dXNlcm5hbWU9InVyYmFuIixyZWFsbT0iZG5hLnk0Mi5vcmciLG5vbmNlPSI3YjgvYktQUF\
luM0wrWG13Y25leVFLRk9GOVVlZVlkUHAvR1BNVWVCMlNrPSIsY25vbmNlPSJ1cVFubUNr\
K2RDcW1PWVNVSVM1a2NvS0Evc2x2amhIZWhxNEtqcklNYyt3PSIsbmM9MDAwMDAwMDEscW\
9wPWF1dGgtY29uZixjaXBoZXI9cmM0LG1heGJ1Zj0xMDI0LGRpZ2VzdC11cmk9InNpZXZl\
L2xvY2FsaG9zdCIscmVzcG9uc2U9NDFhODY1MTEyNTVkM2RkZTIzM2Q5MDYwNDI0MWQ4Nz\
Q=\r
"
32751 timsieved RET read 354/0x162
[reads /etc/sasldb2.db]
[reads /etc/pwd.db]
[reads /etc/group]
32751 timsieved NAMI "/var/sieve/u/urban"
32751 timsieved RET chdir 0
32751 timsieved CALL sendto(0x5,0xcfbde2e0,0x66,0,0,0)
32751 timsieved GIO fd 5 wrote 102 bytes
"<181>Oct 17 02:33:05 imapd/sieve[32751]: login: localhost.y42.org[::1]\
urban DIGEST-MD5 User logged in"
32751 timsieved RET sendto 102/0x66
32751 timsieved CALL write(0x1,0x7d41e000,0x46)
32751 timsieved GIO fd 1 wrote 70 bytes
"OK (SASL "cnNwYXV0aD0zMWZjMGQxOGJiNmQxZjMyNWExZDFhMWNlZDQxNzhlYg==")\r
"
32751 timsieved RET write 70/0x46
32751 timsieved CALL open(0xcfbde730,0x209,0x1a4)
32751 timsieved NAMI "/var/imap/log/urban/32751"
32751 timsieved RET open 8
32751 timsieved CALL write(0x8,0xcfbde730,0x2b)
32751 timsieved GIO fd 8 wrote 43 bytes
"---------- urban Sat Oct 17 02:33:05 2009
"
[at some point here I hit ^C and interrupt sieveshell...]
32751 timsieved RET write 43/0x2b
32751 timsieved CALL gettimeofday(0xcfbdec78,0)
32751 timsieved RET gettimeofday 0
32751 timsieved CALL select(0x1,0xcfbdece0,0,0,0xcfbdecd8)
32751 timsieved RET select 1
32751 timsieved CALL gettimeofday(0xcfbdec78,0)
32751 timsieved RET gettimeofday 0
32751 timsieved CALL gettimeofday(0xcfbdec78,0)
32751 timsieved RET gettimeofday 0
32751 timsieved CALL read(0,0x7d41f000,0x1000)
32751 timsieved RET read 0
32751 timsieved CALL gettimeofday(0xcfbde1e8,0)
32751 timsieved RET gettimeofday 0
32751 timsieved CALL getpid()
32751 timsieved RET getpid 32751/0x7fef
32751 timsieved CALL sendto(0x5,0xcfbde660,0x4d,0,0,0)
32751 timsieved GIO fd 5 wrote 77 bytes
"<180>Oct 17 02:33:10 imapd/sieve[32751]: Lost connection to client -- \
exiting"
32751 timsieved RET sendto 77/0x4d