Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 01-28-2007, 11:04 PM   #1
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') 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?


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

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

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.


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 11:57 AM
store emails on database (postfix) eduac Linux - General 1 07-30-2006 03:31 AM
Emails rejected by Postfix is not showing in the logs andrewthk Linux - Networking 0 01-24-2006 01:48 AM
postfix/procmail doesn't deliver emails! eisman Ubuntu 1 05-18-2005 10:21 AM
Postfix cannot receive emails from outside antho Linux - Newbie 0 02-24-2004 03:02 AM > Forums > Linux Forums > Linux - General

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

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