LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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
 
Search this Thread
Old 01-28-2007, 10:04 PM   #1
vatraxos
LQ Newbie
 
Registered: Jan 2007
Posts: 1

Rep: Reputation: 0
Logging emails on Postfix


I am running Postfix on an Ubuntu distribution and have been requested to log and count all email messages originating at a particular sender.

I have thought of using the log file (tail -f /var/log/mail.log | grep xyz@somedomain.com') and redirecting this into a file. I then need to write a program to read through the file and count the instances of this email address and also connect to mySql and log it.

The problem is I don't know how to write programs in Linux....what do I use? is there an easier way to do this?

Thanks

Vatraxos
 
Old 01-28-2007, 10:56 PM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Welcome to LQ, vatraxos.

Quote:
Originally Posted by vatraxos
is there an easier way to do this?
You could try one of the log analyzers listed on the postfix site. See here.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix doesn't receive incoming emails El Mago Linux - Software 8 08-04-2006 10:57 AM
store emails on database (postfix) eduac Linux - General 1 07-30-2006 02:31 AM
Emails rejected by Postfix is not showing in the logs andrewthk Linux - Networking 0 01-24-2006 12:48 AM
postfix/procmail doesn't deliver emails! eisman Ubuntu 1 05-18-2005 09:21 AM
Postfix cannot receive emails from outside antho Linux - Newbie 0 02-24-2004 02:02 AM


All times are GMT -5. The time now is 02:57 PM.

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