Graphic Interface for Sent Mail

Rick Stevens rstevens at vitalstream.com
Fri Jan 6 17:24:29 UTC 2006


On Fri, 2006-01-06 at 11:25 -0200, Rodrigo Faria Tavares wrote:
> Hello,
>  
> Somebody about a program that count the numbers e-mails sent ?
> In graphic mode.

Huh?  Per account or in total?

For the total messages successfully sent by a MACHINE, try

	# grep -i "relay=.*stat=Sent" /var/log/maillog | wc -l

That scans /var/log/maillog looking for two items in each entry that
pertain to outgoing mail...a "relay=(something)" bit (indicating that
it connected to an outside node) AND a "stat=Sent" bit (indicating the
mail was actually sent out), then counts the lines that match that
criteria.

----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer     rstevens at vitalstream.com -
- VitalStream, Inc.                       http://www.vitalstream.com -
-                                                                    -
-   To understand recursion, you must first understand recursion.    -
----------------------------------------------------------------------




More information about the Redhat-install-list mailing list