From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 5 03:24:34 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 0CBCCE0C for ; Tue, 5 Nov 2013 03:24:34 +0000 (UTC) (envelope-from bounces+73574-4a99-freebsd-hackers=freebsd.org@sendgrid.me) Received: from o3.shared.sendgrid.net (o3.shared.sendgrid.net [208.117.48.85]) by mx1.freebsd.org (Postfix) with SMTP id 95578273A for ; Tue, 5 Nov 2013 03:24:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sendgrid.info; h=from:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding; s=smtpapi; bh=nIEGU6EcoVXcLiUvk25QdqaQOzk=; b=qdbg3+nrnnypMMaMUp 70Yy0IRxc+U5Uc3POAGhwsttApGeeeEJuZz6v6eHgJ0b8TRWVdp9rFMA3BCR9UH+ Up2ILh8lncoFhBNHtoP+OKoCcQzEJdHNvZnIuyxDjulyyDgnIXykFK436MJBzcMT 3bTIE4zkG8RHWnjsrArNxLvyQ= Received: by mf74.sendgrid.net with SMTP id mf74.8350.527864F07 Tue, 05 Nov 2013 03:24:32 +0000 (GMT) Received: from mail.tarsnap.com (unknown [10.60.208.13]) by mi30 (SG) with ESMTP id 142264a4c82.1acd.305298 for ; Mon, 04 Nov 2013 21:24:32 -0600 (CST) Received: (qmail 86814 invoked from network); 5 Nov 2013 03:24:30 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by ec2-107-20-205-189.compute-1.amazonaws.com with ESMTP; 5 Nov 2013 03:24:30 -0000 Received: (qmail 2278 invoked from network); 5 Nov 2013 03:22:56 -0000 Received: from unknown (HELO clamshell.daemonology.net) (127.0.0.1) by clamshell.daemonology.net with SMTP; 5 Nov 2013 03:22:56 -0000 Message-ID: <5278648F.4070904@freebsd.org> Date: Mon, 04 Nov 2013 19:22:55 -0800 From: Colin Percival User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:24.0) Gecko/20100101 Thunderbird/24.0 MIME-Version: 1.0 To: Thomas Mueller , freebsd-current@freebsd.org Subject: Re: Automated submission of kernel panic reports: sysutils/panicmail References: In-Reply-To: X-Enigmail-Version: 1.5.2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-SG-EID: W2XBZA0V/n0voZZ6SjDkgjXvzGvkLIaljy40FLIRIHTVMXCc7ynl2WKQUz0qqp0c2OLEpC94DeFoAwMHV0DEFvpH0v5vMwnIcX188zugTx+TVNENDqeJyHILHSJwVcANYKK1O4dfT+hACWgPnZyms3JLV76InhjicHIYXkiN9oA= Cc: FreeBSD Hackers X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Nov 2013 03:24:34 -0000 On 11/04/13 18:26, Thomas Mueller wrote: > Question that arises is how does the system know where to send the email, and through what SMTP server, especially if panicmail_autosubmit="YES". The code assumes that your system knows how to deliver email. An out-of-the-box FreeBSD install has sendmail and can do this. If you don't enable panicmail_autosubmit then it also assumes you're reading or forwarding root's email -- which you should be doing anyway. > In the case of a kernel panic, wouldn't the system crash/freeze, and would it then be able to compose an email message? The email is generated from the crashdump when the system next boots. > I use mail/mpop and mail/msmtp rather than messing with sendmail or postfix; have multiple email accounts and inboxes. > > Now come to think of it, I don't think I ever sent an email from FreeBSD as root, only as nonroot. Don't you get "daily run output" and "security run output" emails? > Something like panicmail ought to be ported to NetBSD pkgsrc, considering that NetBSD seems so much more unstable and crash-prone than FreeBSD on my hardware. Go right ahead. It's a small shell script -- might even work fine without any changes. It's BSD licensed, of course. -- Colin Percival Security Officer Emeritus, FreeBSD | The power to serve Founder, Tarsnap | www.tarsnap.com | Online backups for the truly paranoid