From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 00:27:04 2006 Return-Path: X-Original-To: hackers@freebsd.org Delivered-To: freebsd-hackers@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C117E16A4DD for ; Sun, 27 Aug 2006 00:27:04 +0000 (UTC) (envelope-from danger@FreeBSD.org) Received: from virtual.micronet.sk (smtp.micronet.sk [84.16.32.237]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5292F43D46 for ; Sun, 27 Aug 2006 00:27:04 +0000 (GMT) (envelope-from danger@FreeBSD.org) Received: from localhost (localhost [127.0.0.1]) by virtual.micronet.sk (Postfix) with ESMTP id 9E80510E74A; Sun, 27 Aug 2006 02:26:52 +0200 (CEST) X-Virus-Scanned: by amavisd-new at virtual.micronet.sk Received: from virtual.micronet.sk ([127.0.0.1]) by localhost (virtual.micronet.sk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id X1lqq-plc-Xf; Sun, 27 Aug 2006 02:26:51 +0200 (CEST) Received: from danger.mcrn.sk (danger.mcrn.sk [84.16.37.254]) by virtual.micronet.sk (Postfix) with ESMTP id 52A6110E748; Sun, 27 Aug 2006 02:26:51 +0200 (CEST) Date: Sun, 27 Aug 2006 02:27:05 +0200 From: Daniel Gerzo Organization: The FreeBSD Project X-Priority: 3 (Normal) Message-ID: <1097706490.20060827022705@rulez.sk> To: Dirk Engling In-Reply-To: <44F0E38F.5030809@erdgeist.org> References: <44F0E38F.5030809@erdgeist.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: hackers@freebsd.org Subject: Re: jails, cron and sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Daniel Gerzo List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Aug 2006 00:27:04 -0000 Hello Dirk, Sunday, August 27, 2006, 2:13:03 AM, you wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > Hello, > I have the following problem: since I need and do not like any kind of > smtp activity in my jails (there's no 127.0.0.1 in a jail, all services > listen to the jails external interface), I put those lines into my > /etc/rc.conf: > sendmail_enable="NO" > sendmail_outbound_enable="NO" > sendmail_submit_enable="NO" > this works fine: nothing listening on the jails interface... except that > cron tries to deliver its status mails and fails. > While failing, sendmail seems to hog cpu and finally floods > /var/spool/clientmqueue and /var/log/maillog. > My quick fix now is to replace /usr/libexec/sendmail/sendmail with > /usr/bin/true in /etc/mail/mailer.conf, however: it seems problematic > that cron insists on a mail sub system, when all it should do is execute > stuff periodically. There should be an option to let it only log to a file. check /etc/defaults/periodic.conf > For my jails this would make sense, too: I never read root's mails > locally, anyway. > Am I missing the obvious solution here? > erdgeist -- Best regards, Daniel mailto:danger@FreeBSD.org