LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 09-26-2003, 12:51 PM   #1
zovres
Member
 
Registered: Sep 2002
Posts: 184

Rep: Reputation: 30
monitor pop3 activities


I need to know what goes trough my pop3 server and who log into it in order to establish an account expiration system

I've looked everywhere without succes :\

can anyone help me?
 
Old 09-26-2003, 02:13 PM   #2
win32sux
Moderator
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 367Reputation: 367Reputation: 367Reputation: 367
what pop3 server are you running and on what distro?

are you using a webmail system on it?
 
Old 09-29-2003, 09:21 AM   #3
zovres
Member
 
Registered: Sep 2002
Posts: 184

Original Poster
Rep: Reputation: 30
I'm running the default pop3 & imap servers that comes with redhat9.0, I don't think they have name. and I have a webmail which is squirrelmail (also comes with redhat and I love it)

 
Old 09-29-2003, 10:03 AM   #4
horlix
LQ Newbie
 
Registered: Sep 2003
Location: Swansea, UK
Distribution: redhat
Posts: 16

Rep: Reputation: 0
/var/log/maillog might have what you need.
 
Old 09-29-2003, 11:55 AM   #5
zovres
Member
 
Registered: Sep 2002
Posts: 184

Original Poster
Rep: Reputation: 30
all right!!!! it's gonna be perfect for my account expiration program.

thx !
 
Old 09-29-2003, 11:57 AM   #6
zovres
Member
 
Registered: Sep 2002
Posts: 184

Original Poster
Rep: Reputation: 30
now, how could I run a php script every 24h?
I could launch galeon and set the homepage to be the script but that wouldn't be an ideal solution, even more if I can't close it after...
 
Old 09-29-2003, 06:01 PM   #7
horlix
LQ Newbie
 
Registered: Sep 2003
Location: Swansea, UK
Distribution: redhat
Posts: 16

Rep: Reputation: 0
if the intention of the script is to gather the usernames from /var/log/maillog and create a list of active mail accounts then I wouldnt have thought that using php was necessary.

bash scripting should be able to cope easily enough, and can be run as a cron job as often as needed.

as you say setting the php script as your homepage and starting a browser is not the answer :-)
 
Old 09-30-2003, 09:19 AM   #8
zovres
Member
 
Registered: Sep 2002
Posts: 184

Original Poster
Rep: Reputation: 30
well, the purpose of the script is to analyse /var/log/maillog and update a mysql database... I know how to update the DB via php but I don't know if it is possible with bash.
I'm sure the analysis of maillog can be done by both.

do you know how to add a cron job and tell it to run every 24h?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
measuring network activities raees Linux - Software 2 04-24-2005 12:30 PM
unknown activities on Fedora 3 gaddargarson Fedora 2 04-04-2005 07:46 AM
how to track user's all activities? hensonliu Linux - Security 6 12-27-2004 02:09 PM
monitor and check what goes through pop3/imap zovres Red Hat 2 09-04-2003 03:29 PM
a way to monitor pop3 ans imap zovres Linux - Networking 2 08-25-2003 11:30 PM


All times are GMT -5. The time now is 03:17 AM.

Main Menu
 
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration