rh7.3 cyrus/sendmail - help

Randy Kunkee randy at randallkunkee.com
Fri Sep 27 01:12:11 EDT 2002


I just worked on a similar problem.  I'm not all the way through it, but I'll
give you a suggestion on how to debug it.

Modify imap/signals.c as follows:

===================================================================
RCS file: /cvs/src/cyrus/imap/signals.c,v
retrieving revision 1.8
diff -u -r1.8 signals.c
--- signals.c   2001/11/27 02:25:00     1.8
+++ signals.c   2002/09/27 05:03:23
@@ -55,10 +55,14 @@
 static void sighandler(int sig)
 {
     /* syslog(LOG_DEBUG, "got signal %d", sig); */
+    if (sig == SIGSEGV) {
+       chdir("/tmp");
+       abort();
+    }
     gotsignal = sig;
 }

-static const int catch[] = { SIGHUP, SIGINT, SIGQUIT, 0 };
+static const int catch[] = { SIGHUP, SIGINT, SIGQUIT, SIGSEGV, 0 };

 void signals_add_handlers(void)
 {


At least in my case, examination of imapd.log showed that imapd's process was
aborting on a SIGSEGV.  I didn't understand how the -D option to imapd was
supposed to help, so the code change above traps the SIGSEGV, chdir's to
/tmp, then performs an abort.  This gave me a core dump I could examine with
gdb, and there I found the problem.  As it happens, my problem was with some
debug code I'd left in a plugin that I've modified (ldapdb.c) so the specific
solution won't apply to you, but perhaps this will lead you to somewhere
useful.  At least now I get a prompt when I telnet to the IMAP port.

Now, if I can only get those users to actually validate....

Good luck,
Randy


jon Doh wrote:

> hi,
>
> i followed my setup instructions from
> http://www.entrophy-free.net/mail-server.html and i read through
> documentation from cyrus and sendmail, but i have a problem. cyrus doesn't
> seem to be responding. it is running, but there is no response. i get:
>
> # telnet localhost imap
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
>
> but that is it. no message like:
> * OK chaos.my-domain.tld Cyrus IMAP4 v2.0.16 server ready
>
> and this command:
> # /usr/local/bin/imtest -m login -a cyrus localhost
>
> only results in:
> C: C01 CAPABILITY
>
> not
> S: * OK chaos.my-domain.tld Cyrus IMAP4 v2.0.16 server ready
>
> help is needed and greatly appreciated. thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.andrew.cmu.edu/mailman/private/info-cyrus/attachments/20020927/45a79692/attachment.html


More information about the Info-cyrus mailing list