[Dovecot] How to run in debug format for SSL testing?

Timo Sirainen tss at iki.fi
Sun Jan 30 09:53:55 EET 2005


On 26.1.2005, at 23:11, Jeff A. Earickson wrote:

> Help, new to dovecot...
>
> I want to get some output from my test sessions to confirm that
> SSL pop and imap are working.  How does one get debug output from
> dovecot?  How does one see that dovecot is using SSL in a transaction?

I don't think you can currently see it from logs.

Easiest way to try that it works at all is to use:

openssl s_client -connect host:993

> on Solaris 9.  BTW, if I compile with Sun's StudioOne version 8 
> compiler,
> I get a core dump of dovecot-auth into /var/run/dovecot.  The gdb 
> backtrace
> looks like:
>
> Program terminated with signal 10, Bus error.
> #0  0x0002b64c in pam_child_input ()

Looks like I fixed this in some 1.0-tests already. I'll include the fix 
in 0.99.14 as well:

diff -ru dovecot-0.99.13/src/auth/passdb-pam.c 
dovecot-0.99.14/src/auth/passdb-pam.c
--- dovecot-0.99.13/src/auth/passdb-pam.c       2004-12-19 
07:25:15.000000000 +0200
+++ dovecot-0.99.14/src/auth/passdb-pam.c       2005-01-30 
09:52:53.000000000 +0200
@@ -275,7 +275,7 @@
                 i_error("PAM: Child process returned only %d bytes", 
ret);
                 result = PASSDB_RESULT_INTERNAL_FAILURE;
         } else {
-               result = *((enum passdb_result *) buf);
+               memcpy(&result, buf, sizeof(result));

                 if ((size_t)ret > sizeof(result)) {
                         /* error message included */
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
URL: <http://dovecot.org/pipermail/dovecot/attachments/20050130/8f45fc56/attachment-0001.bin>


More information about the dovecot mailing list