[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Maillog
- Subject: Re: [cobalt-users] Maillog
- From: "Edward Bishop" <eddie@xxxxxxxxxxxxxxxx>
- Date: Thu Aug 2 01:22:15 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
> > >1. Can I make maillog record the event of a user logging in to collect
their
> > >mail? And, preferably, how many messages they received/deleted?
> > >
> >Sure you can. One easy way might be to install Logcheck
> >http://www.psionic.com . Logcheck searches daily all your logs for
specified
> >words and terms. If installed without any configuring afterwards it will
> >send you mails for every pop3 service, for example (and many other things
> >too).
> >If you just want to see how much traffic is made by you customers, check
the
> >your GUI for statistics.
> > - Hendrik
I'm not sure if Logcheck will help because there's no entry in the log for a
user loggin in to pick up their email - unless this event is being recorded
in another log I don't know about?
All I actually need is to be able to look at a log and see that and when a
specific user last logged in. My old RH server does this in maillog,
inserting two lines like this:
Aug 2 16:44:22 ns ipop3d[36767]: Login user=eddie host=[212.22.22.23]
nmsgs=3/1
Aug 2 16:44:23 ns ipop3d[36767]: Logout user=eddie host=[212.22.22.23]
nmsgs=3 ndele=1
This shows that they received 3 messages but left copies of two on the
server. I'd really like the same on the RaQ4 if anyone knows how to do it.
Maybe I should explain that I'm not nosey! I am running a server for a small
company and often need to know if a remote user has read an urgent message.
> > >Can I make the RaQ maintain two copies of maillog, the normal one and
> > >another one (which needn't rotate) somewhere under home/sites/home/web
(or
> > >another web site directory) so that I can read it with a browser? Or
can
> > >anyone recommend a Perl script or similar which I can call from a web
page
> > >and which will go and read maillog from its usual location and return
it to
> > >the browser as a text file?
> >All you need to do is to write a short shell script which copies your log
> >files to document root of your apache (beware, these files can be very
> >long). This tiny script needs to be run by your cron daemon, eg daily.
How
> >to write a shell script is nicely described here:
http://www.linuxnewbie.org
Thank you for this link to a brilliant and useful article for newbies. (In
case anyone else wants to find it, the full URL is
http://www.linuxnewbie.org/nhf/intel/programming/introbashscript.html).
Many thanks Hendrik for your kind reply which has solved half my problem.
Eddie