From owner-freebsd-hackers@FreeBSD.ORG Sun Aug 27 00:13:05 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 8015916A4E1 for ; Sun, 27 Aug 2006 00:13:05 +0000 (UTC) (envelope-from erdgeist@erdgeist.org) Received: from elektropost.org (elektropost.org [80.237.196.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8AFE043D45 for ; Sun, 27 Aug 2006 00:13:04 +0000 (GMT) (envelope-from erdgeist@erdgeist.org) Received: (qmail 8895 invoked by uid 0); 27 Aug 2006 00:14:00 -0000 Received: from fuckup.club.berlin.ccc.de (HELO ?23.23.23.91?) (erdgeist@erdgeist.org@195.160.172.2) by elektropost.org with AES256-SHA encrypted SMTP; 27 Aug 2006 00:14:00 -0000 Message-ID: <44F0E38F.5030809@erdgeist.org> Date: Sun, 27 Aug 2006 02:13:03 +0200 From: Dirk Engling User-Agent: Thunderbird 1.5.0.5 (Macintosh/20060719) MIME-Version: 1.0 To: hackers@freebsd.org X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Subject: jails, cron and sendmail X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list 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:13:05 -0000 -----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. For my jails this would make sense, too: I never read root's mails locally, anyway. Am I missing the obvious solution here? erdgeist -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (Darwin) iD8DBQFE8OOPImmQdUyYEgkRAlg8AJ94cvRnJO8y04wZdYdzaX1YM4SorACffJtE DN2NRiU437SGchnsOrh5hQs= =t0dd -----END PGP SIGNATURE-----