From owner-freebsd-questions Fri Sep 22 4: 7:41 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ngo.org.uk (ngo.org.uk [193.62.43.28]) by hub.freebsd.org (Postfix) with ESMTP id 3369B37B422 for ; Fri, 22 Sep 2000 04:07:37 -0700 (PDT) Received: (from mac@localhost) by ngo.org.uk (8.9.3/8.9.3) id MAA02795 for freebsd-questions@freebsd.org; Fri, 22 Sep 2000 12:11:39 +0100 (BST) From: Mac Message-Id: <200009221111.MAA02795@ngo.org.uk> Subject: Re: sendmail and cron In-Reply-To: from "Forrest W. Christian" at "Sep 22, 0 03:58:10 am" To: forrestc@imach.com (Forrest W. Christian) Date: Fri, 22 Sep 2000 12:09:30 +0100 (BST) X-Mailer: ELM [version 2.4ME+ PL38 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Forrest W. Christian Wrote > On Fri, 22 Sep 2000, Mac wrote: > > > > Anything wrong with a cron job that runs sendmail -q at specific > > > intervals? Or must I invoke the daemon with -q[time]? > > > > Nope, nothing wrong at all. As Doug Barton points out elsewhere on this > > list 'Why should there be?'. > > I recommend this on any machine NOT running sendmail as a daemon, as > things CAN queue up. > I endorse this, and further clarify it. Run 'sendmail -q' periodically on any machine not running as a queue processing daemon (e.g. 'sendmail -q15m'). Even if you run a mail reciept daemon ('sendmail -bd' or 'smtpd') you still want something to process the queue periodically. Alternatively, you can run _just_ 'sendmail -q15m' without the '-bd' to process the queue periodically anyway. (Changing '15m' to suit your needs). Section 15.5 of the 'Bat Book II' covers this exact scenario, and the footnote there suggests cron(8) as an alternative. Mac To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message