Koozali.org: home of the SME Server

Mail Handling Stats

Luiz

Mail Handling Stats
« on: November 24, 2000, 05:14:46 PM »
It would be nice if E-Smith had a tool that could tell you how many mails it handles in a day or week or.......

Peter Samuel

RE: Mail Handling Stats
« Reply #1 on: November 24, 2000, 06:19:31 PM »
I have a couple of RPMS to do just that :)

Have a look at ftp://ftp.e-smith.org/pub/e-smith/contrib/peters/RPMS and grab the following RPMS:

   i386/qmailanalog-0.70-2.i386.rpm
   noarch/e-smith-qmailanalog-1.1-3.noarch.rpm

After installing them, you'll need to manually fix the permissions on the web panel. Run the following command as root:

   chmod o+rx /etc/e-smith/web/functions/qmailanalog

(You need to do this, otherwise you won't be able to run the panel. This is because these RPMS were based on a future release of the e-smith server and gateway).

Dan Elkins

RE: Mail Handling Stats
« Reply #2 on: November 27, 2000, 12:46:44 AM »
I installed your rpms and after following your installtion instructions I went to use it and got this message:

Software error:
[Sun Nov 26 13:40:57 2000] db.pm: Can't locate esmith/db.pm in @INC (@INC contains: /usr/lib/perl5/5.00503/i386-linux /usr/lib/perl5/5.00503 /usr/lib/perl5/site_perl/5.005/i386-linux /usr/lib/perl5/site_perl/5.005) at /etc/e-smith/web/panels/manager/cgi-bin/qmailanalog line 40. BEGIN failed--compilation aborted at /etc/e-smith/web/panels/manager/cgi-bin/qmailanalog line 40.

What could this be?

Luiz

RE: Mail Handling Stats
« Reply #3 on: November 27, 2000, 05:18:56 PM »
Thanks for that. BUT there is no file /etc/e-smith/web/functions/qmailanalog

Have I missed something? I installed both the files as advised. But I cant seem to find the file that you are refering to.

Thanks for your help.

Luiz

RE: Mail Handling Stats
« Reply #4 on: November 29, 2000, 09:44:12 AM »
I get the same. Have you figured it out yet? Cause I'm still scratching.

Peter Samuel

RE: Mail Handling Stats
« Reply #5 on: November 29, 2000, 10:01:17 PM »
Sorry about that - comes from trying to use new features on an previous release.

I now have a working e-smith-qmailanalog RPM for e-smith-4.0.1 (that will encourage you to upgrade :)

If you managed to install the broken e-smith-qmailanalog, remove it:

rpm -e e-smith-qmailanalog

Then get the working version from:

ftp://ftp.e-smith.org/pub/e-smith/contrib/peters/RPMS/noarch/e-smith-qmailanalog-1.0-5.noarch.rpm

This one has been tested on e-smith 4.0.1

It will NOT work with e-smith 4.0.

Peter Samuel

RE: Mail Handling Stats
« Reply #6 on: November 30, 2000, 01:44:17 AM »
As Charlie just pointed out, you can avoid the rpm removal step with a simple rpm upgrade as follows:

rpm -Uvh --force \
ftp://ftp.e-smith.org/pub/e-smith/contrib/peters/RPMS/noarch/e-smith-qmailanalog-1.0-5.noarch.rpm

Lasse Johansson

RE: Mail Handling Stats
« Reply #7 on: November 30, 2000, 02:28:18 PM »
Peter Samuel wrote:

> Then get the working version from:
>
> ftp://ftp.e-smith.org/pub/e-smith/contrib/peters/RPMS/noarch/e-smith-qmailanalog-1.0-5.noarch.rpm
>
> This one has been tested on e-smith 4.0.1
>
> It will NOT work with e-smith 4.0.

Well, after upgrading to 4.0.1, I get the following error message:

[root@e-smith files]# rpm -Uvh e-smith-qmailanalog-1.0-5.noarch.rpm
error: failed dependencies:
        e-smith-base >= 4.0.12-56 is needed by e-smith-qmailanalog-1.0-5

Do I really have to install e-smith-base >= 4.0.12-56 if I want to use qmailanalog ?

(There are another problems with upgrading to e-smith-base >= 4.0.12-56 on a machine running webstats-addon-0.1-3 as well, so I'd rather not mess up the system:)

[root@e-smith files]# rpm -Uvh e-smith-base-4.0.12-56.noarch.rpm
file /etc/e-smith/templates/etc/httpd/conf/httpd.conf/05NoHostLookups from install of e-smith-base-4.0.12-56 conflicts with file from package webstats-addon-0.1-3
file /etc/e-smith/templates/etc/httpd/conf/httpd.conf/45CustomLogs from install of e-smith-base-4.0.12-56 conflicts with file from package webstats-addon-0.1-3

Charlie Brady

RE: Mail Handling Stats
« Reply #8 on: November 30, 2000, 02:39:27 PM »
Lasse Johansson wrote:

> Peter Samuel wrote:
>
> > Then get the working version from: > >
> ftp://ftp.e-smith.org/pub/e-smith/contrib/peters/RPMS/noarch/e-smith-qmailanalog-1.0-5.noarch.rpm
> > > This one has been tested on e-smith 4.0.1 > >
> It will NOT work with e-smith 4.0.
>
> Well, after upgrading to 4.0.1, I get the following error
> message:
>
> [root@e-smith files]# rpm -Uvh
> e-smith-qmailanalog-1.0-5.noarch.rpm error: failed
> dependencies: e-smith-base >= 4.0.12-56 is needed by
> e-smith-qmailanalog-1.0-5

If you don't have e-smith-base-4.0.12056 installed then you haven't upgraded to e-smith 4.0.1.

> Do I really have to install e-smith-base >= 4.0.12-56 if I
> want to use qmailanalog ?

Yes, it wouldn't have that dependency listed otherwise.

Regards

Charlie

Lasse Johansson

RE: Mail Handling Stats
« Reply #9 on: November 30, 2000, 03:24:34 PM »
Following your advice in another forum, rpm -Uhv --force e-smith-base-4.0.12-56.noarch.rpm, took care of the situation.

Thanks for a very quick response!