XMailforum is a readonly knowledge archive now.

Registering as a new user or answering posts is not possible anymore.

Might the force be with you, to find here what you are looking for.

2019-09-20 - hschneider, Admin

Cookie Disclaimer: This forum uses only essential, anonymous session cookies (xmailforum*), nothing to be scared of.

XMail Forum -> Another Idea?

Reply to this topicStart new topicStart Poll

> Another Idea?, MailStats Script?
BooT
Posted: Jul 20 2003, 02:02 AM
Quote Post


Guru
**********

Group: Members
Posts: 747
Member No.: 375
Joined: 29-November 02



Hi ppl's

How about a script for stats on Xmail Logs?
There are curently 2 out there... The one is ok... But not so cool and the other one does not work... on 2000 anyway....

I know a lot of people would like to have this tool. I for one would LOVE it!

Does not have to be "Real Time" and could be run every 30 days or so? or when ever i want it to run....?

What would we need in this ( And pls do add here!)

- Mailchecks per domain
- Mail Checks per User
- Mail sent to user ( Count mails ) (total Bandwith used)
- Mail sent from user ( Count mails ) (total Bandwith used)
- Mail sent to Domain ( Count Mails ) (Total Bandwith)
- Mail sent from Domain ( Count Mails ) (Total Bandwith)
- Mail's Handeled by Domain (Count Sent and Received) (Count Total Bandwith -Sent and Received)
- Mail sent to other Domains (Xmail Server Wide) (Count mail's,Resolve Domain's,Bandwith Used)
- Mail Received from other Domains (Xmail Server Wide) (Count mail's,Resolve Domain's,Bandwith Used)
- Mail Sent in Total (Xmail Server Wide) (Count mail's, Total bandwith Used)

Do not know in what format this should be returned. I spose html would do nicely.

Also....
It would be nice to have XFM v0.01 incorporated in this.... I think it is relevant...

How about something to run this of a webpage that When u click a link for either stats or XFM that that .pl script would run on the server?
It would make administration a lot easier....
A sort of an Admin Interface where all "scripts" that is loaded on /in Xmail could be run from. This includes the clear cache script and the frozen messages clearing script.
Lets call it a "Master Admin interface for Xmail" ?

I hate remotely logging into my server and then have to run these things of my server. Not all scripts have to be run every day and some only when i want them 2...

Gee...I wrote a book again....

Hope u can understand all this!

Thanx again for the help.....

BooT







--------------------
________________________________________________________________________________

--= Running XMail Server 1.22 on Windows 2003 Virtual Server Since 16 August 2006 =--
[--- Ran Xmail on 2000 Server till Aug 2006 ---]
[--- 1.21 From 21 June 2005 till 15 Jan 2006---]
[--- 1.20 From 20 July 2004 till 21 June 2005---]
[--- 1.17 From 20 October 2003 till 20 July 2004---]
PMEmail Poster
Top
MayVortex
Posted: Jul 21 2003, 07:00 AM
Quote Post


Script Guru
*****

Group: Members
Posts: 194
Member No.: 354
Joined: 13-November 02



Ok, I will try to make it (good idea, about full stat:)), but not so fast as XFM wink.gif
PMEmail Poster
Top
MayVortex
Posted: Jul 21 2003, 07:09 AM
Quote Post


Script Guru
*****

Group: Members
Posts: 194
Member No.: 354
Joined: 13-November 02



QUOTE ("BooT")

How about something to run this of a webpage that When u click a link for either stats or XFM that that .pl script would run on the server?
It would make administration a lot easier....
A sort of an Admin Interface where all "scripts" that is loaded on /in Xmail could be run from. This includes the clear cache script and the frozen messages clearing script.
Lets call it a "Master Admin interface for Xmail" ?

$$$ cool.gif
This must be VERY Secure thing... BIG project. But if you realy need this - root@dinfo.ru smile.gif

QUOTE ("BooT")

It would make administration a lot easier....

Yeee, and hack to smile.gif
PMEmail Poster
Top
BooT
Posted: Jul 21 2003, 07:43 AM
Quote Post


Guru
**********

Group: Members
Posts: 747
Member No.: 375
Joined: 29-November 02



Ok...If not a Website Application... What about a Client Side App ?
Will it be Easier? and safer?

Just Asking...

smile.gif



--------------------
________________________________________________________________________________

--= Running XMail Server 1.22 on Windows 2003 Virtual Server Since 16 August 2006 =--
[--- Ran Xmail on 2000 Server till Aug 2006 ---]
[--- 1.21 From 21 June 2005 till 15 Jan 2006---]
[--- 1.20 From 20 July 2004 till 21 June 2005---]
[--- 1.17 From 20 October 2003 till 20 July 2004---]
PMEmail Poster
Top
BooT
Posted: Jul 21 2003, 07:51 AM
Quote Post


Guru
**********

Group: Members
Posts: 747
Member No.: 375
Joined: 29-November 02



k...Let me just say this aswell....

The reason i would like to have this "Master Admin interface for Xmail" with all tools in one Place is that i had a HDD Crash a week back... And to get everything back up and set up correctly and to FIND everything i used and installed on Xmail was a NIGHTMARE!!

So if we could run every tool from one app it would make it so much easier....
And it is not always needed for an html interface or webaccess to some apps for all to see... ONLY the administrator needs to see it. This goes for the
- Stats
- XFM
- Clear Cache
- Clear Frozen Messages

etc... etc... etc...

A lot of custome Administration scripts and tasks could be incorporated in this app?

You all get the idea?

It is just a thought.... smile.gif



--------------------
________________________________________________________________________________

--= Running XMail Server 1.22 on Windows 2003 Virtual Server Since 16 August 2006 =--
[--- Ran Xmail on 2000 Server till Aug 2006 ---]
[--- 1.21 From 21 June 2005 till 15 Jan 2006---]
[--- 1.20 From 20 July 2004 till 21 June 2005---]
[--- 1.17 From 20 October 2003 till 20 July 2004---]
PMEmail Poster
Top
MayVortex
Posted: Jul 21 2003, 12:22 PM
Quote Post


Script Guru
*****

Group: Members
Posts: 194
Member No.: 354
Joined: 13-November 02



Not good idea sad.gif
Not interesting... rootine...

5 small perl script's fater then one big. Some scripts uses modules, other - not.

But if you want an admin tool, try this one:
CODE

#!/usr/bin/perl
my $ex = $ARGV[0];
if ($ex==0){system("/xfm.pl");}
if ($ex==1){system("/stat.pl");}

etc...
than start './starter.pl 0' for start xfm smile.gif

All scripts have variable like: $path. SetUp it well, and you can start your script from everywhere you want... Then copy all scripts in one place (dir), tar.gz it and then copy to other HDD... When your HDD crash, jast recover it and copy archive back... rolleyes.gif
PMEmail Poster
Top
BooT
Posted: Jul 21 2003, 03:54 PM
Quote Post


Guru
**********

Group: Members
Posts: 747
Member No.: 375
Joined: 29-November 02



So in Otherwords no way to get a client/server app ( Like XMail Queue Manager ) for these admin tools to be run by Server admins only?

Just Checking...

smile.gif


--------------------
________________________________________________________________________________

--= Running XMail Server 1.22 on Windows 2003 Virtual Server Since 16 August 2006 =--
[--- Ran Xmail on 2000 Server till Aug 2006 ---]
[--- 1.21 From 21 June 2005 till 15 Jan 2006---]
[--- 1.20 From 20 July 2004 till 21 June 2005---]
[--- 1.17 From 20 October 2003 till 20 July 2004---]
PMEmail Poster
Top
MayVortex
Posted: Jul 21 2003, 05:44 PM
Quote Post


Script Guru
*****

Group: Members
Posts: 194
Member No.: 354
Joined: 13-November 02



Yep... Only scripts (for free)
But if someone write this tool...

P.S. If you realy need this tool, I can write it for U, but not for free.
PMEmail Poster
Top
BooT
Posted: Jul 21 2003, 07:29 PM
Quote Post


Guru
**********

Group: Members
Posts: 747
Member No.: 375
Joined: 29-November 02



Yea...I realy need it...But do not have the $$$ To pay for it...

LOL

But thanx anyway....

smile.gif


How long will the stats script take to complete?



--------------------
________________________________________________________________________________

--= Running XMail Server 1.22 on Windows 2003 Virtual Server Since 16 August 2006 =--
[--- Ran Xmail on 2000 Server till Aug 2006 ---]
[--- 1.21 From 21 June 2005 till 15 Jan 2006---]
[--- 1.20 From 20 July 2004 till 21 June 2005---]
[--- 1.17 From 20 October 2003 till 20 July 2004---]
PMEmail Poster
Top
MayVortex
Posted: Jul 22 2003, 02:03 PM
Quote Post


Script Guru
*****

Group: Members
Posts: 194
Member No.: 354
Joined: 13-November 02



QUOTE ("BooT")

Yea...I realy need it...But do not have the $$$ To pay for it...

Not so much smile.gif I think 70-100$...

QUOTE ("BooT")

How long will the stats script take to complete?

Soon (2-3 days for first version) smile.gif
PMEmail Poster
Top
MayVortex
Posted: Jul 23 2003, 04:12 PM
Quote Post


Script Guru
*****

Group: Members
Posts: 194
Member No.: 354
Joined: 13-November 02



MVXstat v1.0 released smile.gif

http://mail.dinfo.ru/mvxstat.tar.gz

- Gether stat. from XMail log files:
First table (summary):
- Messages In: total (OK*)
- Size In
- Mess Out: total (OK)
- Size Out
- Mess Local : total (OK)
- Size Local
- Mess Other **
Second table (users)
- user/size out/mess out/size in/mess in/total size/total mess/
- Place resul in HTML file

*OK message: RECV=OK/RCPT=OK
** Have no domain etc...

In first start script pars ALL log files. When finish - store the files: "last", "domain.db" and "users.db" where place last scaned file/data, and other information. Next time it will pars only NEW data and add it to data from this files...

In the next version:
- sort by filelds!
- Third table: domains stat
PMEmail Poster
Top
BooT
Posted: Jul 23 2003, 05:47 PM
Quote Post


Guru
**********

Group: Members
Posts: 747
Member No.: 375
Joined: 29-November 02



Erm...Nice that it is out so fast.....

But mine do not work?

It creates the "last" and 2 .db files and that is it?

???

I am on Windows 2000


--------------------
________________________________________________________________________________

--= Running XMail Server 1.22 on Windows 2003 Virtual Server Since 16 August 2006 =--
[--- Ran Xmail on 2000 Server till Aug 2006 ---]
[--- 1.21 From 21 June 2005 till 15 Jan 2006---]
[--- 1.20 From 20 July 2004 till 21 June 2005---]
[--- 1.17 From 20 October 2003 till 20 July 2004---]
PMEmail Poster
Top
BooT
Posted: Jul 23 2003, 05:49 PM
Quote Post


Guru
**********

Group: Members
Posts: 747
Member No.: 375
Joined: 29-November 02



Erm...sorry...me blond again....

Forgot to add the domain's....

LOL

Any way for autodetecting the domains as an option?



--------------------
________________________________________________________________________________

--= Running XMail Server 1.22 on Windows 2003 Virtual Server Since 16 August 2006 =--
[--- Ran Xmail on 2000 Server till Aug 2006 ---]
[--- 1.21 From 21 June 2005 till 15 Jan 2006---]
[--- 1.20 From 20 July 2004 till 21 June 2005---]
[--- 1.17 From 20 October 2003 till 20 July 2004---]
PMEmail Poster
Top
BooT
Posted: Jul 23 2003, 06:12 PM
Quote Post


Guru
**********

Group: Members
Posts: 747
Member No.: 375
Joined: 29-November 02



Ok...ran it...took forever and got my stats now....

It is a bit of a mess.... to much info all over the show...

Would it be possible to sort by Domain and maybe per month?

So we have stats per Month and per Domain. Users listed under Their Domains?By default most bussy user at the top working their way down?

That would be Great!


--------------------
________________________________________________________________________________

--= Running XMail Server 1.22 on Windows 2003 Virtual Server Since 16 August 2006 =--
[--- Ran Xmail on 2000 Server till Aug 2006 ---]
[--- 1.21 From 21 June 2005 till 15 Jan 2006---]
[--- 1.20 From 20 July 2004 till 21 June 2005---]
[--- 1.17 From 20 October 2003 till 20 July 2004---]
PMEmail Poster
Top
dfitch
Posted: Jul 24 2003, 08:13 AM
Quote Post


Advanced Member
****

Group: Members
Posts: 117
Member No.: 475
Joined: 28-February 03



Works great on Linux, no probs with speed process time here.

Like boot said would be nice to have users under their domains.

option for sending stats to admin.

This is very accurate, nice work Igor...Again as usual. wink.gif

D
PMEmail Poster
Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
« Next Oldest | Scripting Corner | Next Newest »

Reply to this topicStart new topicStart Poll