From owner-freebsd-questions@FreeBSD.ORG Thu Oct 9 15:12:05 2008 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 93B651065692 for ; Thu, 9 Oct 2008 15:12:05 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from QMTA02.emeryville.ca.mail.comcast.net (qmta02.emeryville.ca.mail.comcast.net [76.96.30.24]) by mx1.freebsd.org (Postfix) with ESMTP id 94FC68FC1B for ; Thu, 9 Oct 2008 15:12:02 +0000 (UTC) (envelope-from jdc@koitsu.dyndns.org) Received: from OMTA12.emeryville.ca.mail.comcast.net ([76.96.30.44]) by QMTA02.emeryville.ca.mail.comcast.net with comcast id QdjK1a01r0x6nqcA2fC1fc; Thu, 09 Oct 2008 15:12:01 +0000 Received: from koitsu.dyndns.org ([69.181.141.110]) by OMTA12.emeryville.ca.mail.comcast.net with comcast id QfC01a00B2P6wsM8YfC0ju; Thu, 09 Oct 2008 15:12:01 +0000 X-Authority-Analysis: v=1.0 c=1 a=6QFDZWrPJSUA:10 a=QycZ5dHgAAAA:8 a=RWhMxSAMq9FB2pT2WpkA:9 a=56M8qYBiLaMf3PgCHP0A:7 a=ULTUZ58INpU-kOo6H5KfGi9WrQQA:4 a=EoioJ0NPDVgA:10 a=LY0hPdMaydYA:10 Received: by icarus.home.lan (Postfix, from userid 1000) id 51E13C9419; Thu, 9 Oct 2008 08:12:00 -0700 (PDT) Date: Thu, 9 Oct 2008 08:12:00 -0700 From: Jeremy Chadwick To: Corey Dulecki Message-ID: <20081009151200.GA6739@icarus.home.lan> References: <48EE1A9E.7020406@internationalservices.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <48EE1A9E.7020406@internationalservices.com> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: questions@freebsd.org, "Grammas, August" Subject: Re: daily/weekly/monthly periodic output X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 09 Oct 2008 15:12:05 -0000 On Thu, Oct 09, 2008 at 10:52:14AM -0400, Corey Dulecki wrote: > I have FreeBSD 6.2 running on IBM hardware, single CPU. This server > does not have sendmail enabled at all, i.e., in /etc/rc.conf, all four > of the "sendmail_xxx" enablers are set to "NO". Today, the /var > filesystem ran out of inodes. > > I tracked the issue down to files that keep appearing in > /var/spool/clientmqueue. Which makes no sense, since you're using postfix -- postfix does not use that directory. It sounds to me like possibly your /etc/mail/mailer.conf (used by mailwrapper) is still pointing to the Sendmail (non-postfix) binaries. > I've researched enough to understand that > these files represent emails that cannot be sent, presumably because I > do not have a mail server running on the system. I do not want to > enable sendmail or any other client; what I want to do is have the > processes which generate these emails send their information to a log, > which I will check manually. I believe these emails are being generated > by the daily/weekly/monthly periodic processes, something that I didn't > even know existed until I ran out of inodes. > > My question is this: How can I make it so that these periodic processes > simply log their messages instead of sending emails that get stuck in > clientmqueue? Alternatively, if I can't do that, how do I simply turn > off these emails entirely so that they are not sent? You should be using these values in rc.conf: # We use postfix postfix_enable="yes" sendmail_enable="NO" sendmail_submit_enable="NO" sendmail_outbound_enable="NO" sendmail_msp_queue_enable="NO" And these values in periodic.conf: # We use postfix daily_clean_hoststat_enable="NO" daily_status_mail_rejects_enable="NO" daily_status_include_submit_mailq="NO" daily_submit_queuerun="NO" And these values in /etc/mail/mailer.conf: sendmail /usr/local/sbin/sendmail send-mail /usr/local/sbin/sendmail mailq /usr/local/sbin/sendmail newaliases /usr/local/sbin/sendmail If you *really* want to turn off daily/weekly/monthly mails -- which I strongly DO NOT recommend you do, for MANY reasons -- you should look at /etc/defaults/periodic.conf for all of the values you can tune. DO NOT edit that file -- use /etc/periodic.conf instead. -- | Jeremy Chadwick jdc at parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP: 4BD6C0CB |