RE: [Mimedefang] Counting mail traffic

2004-04-16 Thread Cormack, Ken
If you need a breakdown of mailsize per users, then it might be easiest to
parse your maillog.  Each log entry showing the from= also shows the
sendmail message ID and the size=.  You would need to search for the
size=, capture the message ID number, then search the log again, for the
to= entry that has the same message ID number.

Ken

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Egor
Moskvichev
Sent: Thursday, April 15, 2004 1:02 AM
To: [EMAIL PROTECTED]
Subject: Re: [Mimedefang] Counting mail traffic


 Simply use the mailstats command.  It will give you output that you
need.

Thank you for an answer.
I've tried your method, but it's not i really need. Mailstats output is very
lack of information:

Statistics from Thu Apr 15 12:49:43 2004
 M   msgsfr  bytes_from   msgstobytes_to  msgsrej msgsdis  Mailer
 30  0K5 20K0   0  local
 54 19K0  0K0   0  esmtp
=
 T4 19K5 20K0   0
 C620

I need to know mail traffic for each user exactly.

Egor Mockvichev

___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] Counting mail traffic

2004-04-16 Thread Egor Moskvichev
 If you need a breakdown of mailsize per users, then it might be easiest to
 parse your maillog.  Each log entry showing the from= also shows the
 sendmail message ID and the size=.  You would need to search for the
 size=, capture the message ID number, then search the log again, for the
 to= entry that has the same message ID number.

Yes, i walked through it easily but there are some problems with sendmail
logs. The information which is kept there is not reliable so i decided to
choose mimedefang filter because it contains all info about connection and
mail processing.
So, it suits me in every respect but as i said earlier, it logs empty
strings sometimes (see my first posting above). I want to understand why it
does and how to walk around this problem.

Egor Moskvichev

___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] Counting mail traffic

2004-04-15 Thread Egor Moskvichev
 Simply use the mailstats command.  It will give you output that you
need.

Thank you for an answer.
I've tried your method, but it's not i really need. Mailstats output is very
lack of information:

Statistics from Thu Apr 15 12:49:43 2004
 M   msgsfr  bytes_from   msgstobytes_to  msgsrej msgsdis  Mailer
 30  0K5 20K0   0  local
 54 19K0  0K0   0  esmtp
=
 T4 19K5 20K0   0
 C620

I need to know mail traffic for each user exactly.

Egor Mockvichev

___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


RE: [Mimedefang] Counting mail traffic

2004-04-14 Thread Cormack, Ken
 I tried to count mail traffic with MIMEDefang. Everything goes fine but
 sometimes i see empty strings in my maillog file, such as:
 Tue Apr 13 19:58:54 2004
 42080
 There is no ip and recipient.
 How can i solve this problem?

Simply use the mailstats command.  It will give you output that you need.

Make sure your sendmail is configured with statistics enabled, by placing
the following line in your sendmail.mc file:

define(`STATUS_FILE', `/etc/mail/statistics')

Create the statistics file using the following command, if it does not
already exist:

touch /etc/mail/statistics

Then, every night, run the following two commands in a cron task, and let
the cron task mail you the results:

mailstats
 /etc/mail/statistics

Ken

___
Visit http://www.mimedefang.org and http://www.canit.ca
MIMEDefang mailing list
[EMAIL PROTECTED]
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang