LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 09-27-2002, 12:31 PM   #1
finger51
LQ Newbie
 
Registered: Aug 2002
Posts: 22

Rep: Reputation: 15
2 different questions about mail messages


Howdie~

I'm running a webserver using apache. I'd like to figure out a way to have my server send me an IP log of 'visitors' to my site. Is it possible to make a script that will email me a list of the IP's?

&

Whats the best way to access the messages mailed to my root account by my systems? I'm using mozilla to get my regular user mail right now. But I'd like to be able to get my root messages and regular mail at the same time. I have two machines, machine #1 runs apache and sendmail- machine #2 is my personal workstation. I can get my mail from my ISP and sendmail server accounts, but I haven't been able to make an account that will get my root messages from both machines.

thanks

finger

Last edited by finger51; 09-27-2002 at 12:33 PM.
 
Old 09-27-2002, 12:59 PM   #2
akohlsmith
Member
 
Registered: Apr 2002
Distribution: Slackware
Posts: 114

Rep: Reputation: 15
there are many apache log parsers and formatters. A quick search on freshmeat.net will give you a number of choices. To mail them just pipe the output through sendmail. (sendmail the mail sending program, not sendmail the MTA by the same name).

If the server isn't to do anything with mail other than send you the periodic message, I have grown quite fond of nullmailer. Personally I use qmail for "proper" MTAs.

The solution to your second question lies either in some kind of forwarding mechanism or, and this is my recommendation, don't send them to root. cron scripts can be told to pipe to email admin@domain and have the admin account a forward or something.

I administrate over a dozen servers in probably as many locations -- not a single one ever emails root.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
mail messages parse giandrea Programming 0 09-24-2004 09:13 AM
slack mail messages archish Slackware 2 12-13-2003 09:08 AM
Filtering mail messages on ISP's mail server broxtor Linux - Software 0 07-28-2003 03:47 PM
More BB questions and some error messages Mega Man X Linux - Software 4 07-11-2003 08:49 PM
exporting mail messages elucid Linux - General 0 06-11-2001 11:06 AM


All times are GMT -5. The time now is 10:54 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration