From owner-freebsd-questions@FreeBSD.ORG Thu Sep 2 13:02:43 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F1AD716A4CE for ; Thu, 2 Sep 2004 13:02:42 +0000 (GMT) Received: from smtp.infracaninophile.co.uk (ns0.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C0DB43D1F for ; Thu, 2 Sep 2004 13:02:42 +0000 (GMT) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i82D2aTO090283 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 2 Sep 2004 14:02:36 +0100 (BST) (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)i82D2aEr090282; Thu, 2 Sep 2004 14:02:36 +0100 (BST) (envelope-from matthew) Date: Thu, 2 Sep 2004 14:02:36 +0100 From: Matthew Seaman To: joshua Message-ID: <20040902130236.GA90103@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , joshua , freebsd-questions@freebsd.org References: <20040902070921.62549.qmail@web15704.mail.cnb.yahoo.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ikeVEW9yuYc//A+q" Content-Disposition: inline In-Reply-To: <20040902070921.62549.qmail@web15704.mail.cnb.yahoo.com> User-Agent: Mutt/1.4.2.1i X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-1.5.6 (smtp.infracaninophile.co.uk [IPv6:::1]); Thu, 02 Sep 2004 14:02:37 +0100 (BST) X-Virus-Scanned: clamd / ClamAV version devel-20040705, clamav-milter version 0.74a on smtp.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.64 X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk cc: freebsd-questions@freebsd.org Subject: Re: question about /var/spool/clientmqueue X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 02 Sep 2004 13:02:43 -0000 --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Sep 02, 2004 at 03:09:21PM +0800, joshua wrote: > I found there is a directory named /var/spool/clientmqueue and many > many file below this directory, what's use of this directory and the > files under it?=20 That's part of the workings of sendmail. /var/spool/clientmqueue is the holding area used by the MSP (Mail Submission Protocol) sendmail instance before it injects the messages into the main MTA (Mail Transport Agent) sendmail instance. You'll get the effect you see by not running any sendmail daemons: unix mailers will send e-mail by piping the message into the stdin of sendmail, and sendmail will save the message in /var/spool/clientmqueue for safe keeping before trying to connect to the MTA to get the message delivered. Normally there would be a 'queue runner' MSP sendmail instance which every half hour would retry sending any message that couldn't be sent immediately. Each message will generate a 'df' (message routing info) and 'qf' (message headers and body) file. You can list out all of the messages and their status by: # mailq -v -Ac A FreeBSD system basically assumes that it has e-mail connectivity available to it: eg. any output from cron jobs will be e-mailed back to the job's owner. There will also be the daily, weekly and monthly periodic script output. You can modify /etc/periodic.conf to redirect the periodic script output to log files rather than e-mail. See periodic.conf(5). --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --ikeVEW9yuYc//A+q Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBNxnsiD657aJF7eIRAvA2AJ9ixbsY9geAS1PHI2JX5xYA/2+2MACgr20c rbYsqLdIhy7JXiRvnf/WQLA= =THbL -----END PGP SIGNATURE----- --ikeVEW9yuYc//A+q--