Qmail
[Top] [All Lists]

Re: patched qmail-remote crashes on ubuntu linux

To: qmail@list.cr.yp.to
Subject: Re: patched qmail-remote crashes on ubuntu linux
From: John Simpson <jms1@jms1.net>
Date: Sun, 24 Dec 2006 20:59:44 -0500
Delivered-to: sp-com-lists@consult.net
Delivered-to: gmail-qmail@securepoint.com
Delivered-to: sp.com.list@gmail.com
Delivered-to: mailing list qmail@list.cr.yp.to
In-reply-to: <p06240604c1b04b5f2ad1@chowder.foxhunters.org>
Mailing-list: contact qmail-help@list.cr.yp.to; run by ezmlm
References: <p06240604c1b04b5f2ad1@chowder.foxhunters.org>
On 2006-12-21, at 0938, Matt Simpson wrote:

I've just installed Ubuntu Linux 6.06, and qmail patched with John Simpson's consolidated patch that adds auth, tls, and a bunch of other good stuff. Qmail-remote crashes. I don't have much more information other than the "qmail-remote crashed" message in the log.

what version of the patch?

there have been a few bug-fixes in the past few weeks, and one of them did have to do with qmail-remote. the original TLS+AUTH patch had qmail-remote sending the STARTTLS command before checking to see if the clientcert.pem file existed, so if the file wasn't there, qmail-remote would send the STARTTLS command and then die. version 6ca now checks to make sure the clientcert.pem file exists and is readable when qmail-remote starts, and if it's not, the STARTTLS command will never be sent to the remote server.

i don't know if this will fix your issue or not, but if you're using a version earlier than 6ca it's certainly something to look into.

Unpatched qmail runs ok, so the problem is apparently introduced by the patch. I've tried patch versions 6c5 and 6ca, and they both crash.

I run qmail with various versions of this patch on other systems (Freebsd and Suse Linux), and it doesn't crash. So I don't think the patch is "bad", but something about installing it on Ubuntu, or the way I installed it, seems to be causing problems. I did get some compilation warnings when I compiled qmail, but I also got warnings when I compiled the unpatched qmail that worked. I'm not 100% sure if all the warnings were the same in both cases.

i seem to be running into a lot of platform-specific or compiler- specific bugs lately...

--------------------------------------------------
| John M. Simpson - KG4ZOW - Programmer At Large |
| http://www.jms1.net/           <jms1@jms1.net> |
--------------------------------------------------
| Mac OS X proves that it's easier to make UNIX  |
| pretty than it is to make Windows secure.      |
--------------------------------------------------


Attachment: PGP.sig
Description: This is a digitally signed message part

<Prev in Thread] Current Thread [Next in Thread>