Date: Thu, 2 Sep 2004 14:02:36 +0100 From: Matthew Seaman <m.seaman@infracaninophile.co.uk> To: joshua <cigant@yahoo.com.cn> Cc: freebsd-questions@freebsd.org Subject: Re: question about /var/spool/clientmqueue Message-ID: <20040902130236.GA90103@happy-idiot-talk.infracaninophile.co.uk> In-Reply-To: <20040902070921.62549.qmail@web15704.mail.cnb.yahoo.com> References: <20040902070921.62549.qmail@web15704.mail.cnb.yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040902130236.GA90103>