Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Nov 1999 22:21:57 +0800 (WST)
From:      Michael Kennett <mike@laurasia.com.au>
To:        big-sky@altavista.net
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: daily run output
Message-ID:  <199911081421.WAA08441@laurasia.com.au>
In-Reply-To: <000601bf29f0$0e3e0a60$0201010a@cmr.net> from Mark Einreinhof at "Nov 8, 99 07:49:19 am"

next in thread | previous in thread | raw e-mail | index | archive | help
Mark wrote:
>
>What does this mean in my daily run out put?
>
>Mail in local queue:
>		 Mail Queue (1 request)
>--Q-ID-- --Size-- -----Q-Time----- ------------Sender/Recipient------------
>CAA15051* (no control file)

Good question Mark.

This output has been produced by the `mailq' (1) command, and it gives a
summary of the queued mail that is awaiting delivery. So, why is there just
this one piece of mail, every night?

The daily output run is fired off from cron. If you have a look at the
/etc/crontab file, you'll see that the daily administration run is fired
off with the command:

	periodic daily 2>&1 | sendmail root

So....  the mail queue entry that you are seeing in your daily output is the
mail that is being generated by the daily run (!).

To test this, try the following from the command line (enter in the commands
prefixed with the '$' prompt; sample output is shown):

$  mailq
Mail queue is empty

$ ( echo foo ; sleep 15 ) | sendmail root  &
[1] 9246
		 Mail Queue (1 request)
--Q-ID-- --Size-- -----Q-Time----- ------------Sender/Recipient------------
WAA09246* (no control file)

$ mailq
Mail queue is empty


Hopefully you'll be able to convince yourself that the mail queue entry
reported by the daily admin. run is just the output of that admin run!


Have fun,

Mike Kennett
(mike@laurasia.com.au)



To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911081421.WAA08441>