>> On another topic, I don't suppose anyone has a way of emulating the
>> sendmail `mailstats' command? I use MRTG to graph inbound mail rates,
>> and it would be nice to have something similar to allow a snapshot of
>> traffic.
>
> There's the eximstats script, but I don't know mailstats, so I
> can't tell you how mentally close it is to the mailstats program.
mailstats is much more terse, it is also very quick as the statistics
are accumulated by sendmail as it runs. Sample output:
Statistics from Tue May 25 01:04:47 1999
M msgsfr bytes_from msgsto bytes_to msgsrej msgsdis Mailer
0 0 0K 10 10K 0 0 prog
5 6241 136066K 6912 115795K 57 0 esmtp
8 269 3258K 72 73K 0 0 local
=========================================================
T 6510 139324K 6994 115878K 57 0
Very useful sometimes. eximstats is very nice though.
Another utility from sendmail that I miss is hoststat.
It makes output like this:
-------------- Hostname --------------- How long ago
---------Results---------
mail.himmeloghav.no 04:29:31 250 Ok Message queued
exchange.edbasa.no 03:04:03 250 Ok
mail.storebrand.no 09:18:45 250 Message received
OK
bibsyst.bibsyst.no 15:09:06 250 Mail accepted
mail.powertech.no 00:39:29 250 QAA19864 Message
acce
online.no 00:02:42 250 RAA13746 Message
acce
server.h-radet.no 01:21:29 250 OK
frdbib.of.fylkesbibl.no 10:10:27 250 Mail accepted
ranabib.rana.fylkesbibl.no 02:42:28 250 Mail accepted
samson.khio.no 02:05:13 250 PAA04571 Message
acce
lex.hsf.no 00:31:49 Deferred: Connection
time
isak.telepost.no 00:34:38 250 Message received
and
alf.uib.no 02:46:54 250 OK
id=10mGQE-0002Fd-0
server3.nsd.uib.no 09:00:46 250 Message received:
199
hermes.svf.uib.no 03:50:00 250 NAA05330 Message
acce
eik.ii.uib.no 05:20:38 250 MAA02397 Message
acce
rasmus.uib.no 00:05:06 250 OK
id=10mIxS-0004hr-0
mink.ifi.uib.no 03:08:36 250 OAA00394 Message
acce
riff.hiof.no 09:28:14 250 Data received OK.
...etc...
In other words it shows what nodes have been connected to,
how long since and what the status was at that time.
I do not use this utility a lot, but certainly miss it
under exim even so.
-psi
--
*** Exim information can be found at
http://www.exim.org/ ***