LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 11-17-2003, 08:19 AM   #1
ramnath
LQ Newbie
 
Registered: Nov 2003
Posts: 5

Rep: Reputation: 0
Logging mails sent through Qmail


Hi Guys,

Excuse the brief description.

I have a Linux box running with an Imap Server running Qmail. I need to keep a log of all incoming and outgoing mails from this IMAP Server. The log needs to contain the sender name, reciever name, subject, message body and also the attachments. Actually this entire log needs to be put into a mysql database with the attachments being stored in a seperate folder earmarked for the purpose ( the path & filename to be stored in the mysql db). I know that qmail logs enable to track the headers of the mail. But can someone tell me whether it is possible to log the entire mail content and also the attachments. I am a not an expert in Linux so pls be descriptive about ur answers.

Thanks
 
Old 07-23-2004, 08:04 AM   #2
technik
LQ Newbie
 
Registered: Jul 2004
Posts: 3

Rep: Reputation: 0
8.2. How do I keep a copy of all incoming and outgoing mail messages?

Answer: Set QUEUE_EXTRA to "Tlog\0" and QUEUE_EXTRALEN to 5 in extra.
Recompile qmail. Put ./msg-log into ~alias/.qmail-log.

You can also use QUEUE_EXTRA to, e.g., record the Message-ID of every
message: run

| awk '/^$/ { exit } /^[mM][eE][sS][sS][aA][gG][eE]-/ { print }'

from ~alias/.qmail-log.
 
  


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
Qmail logging Jukas Linux - Software 0 11-10-2005 01:13 PM
QMAIL/MAILDROP/PROCMAIL: obtaining the filename used to deliver the new mails madhurtanwani Linux - Software 2 09-23-2005 01:54 AM
wrong date on sent mails using qmail NuLLiFiEd Slackware 3 11-23-2004 05:50 PM
qmail not sending mails spank Linux - Software 0 05-21-2004 01:08 PM
qmail behind nat - can get mails but can't send * i googled ehpserver Linux - Networking 1 10-22-2003 09:16 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:13 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
Open Source Consulting | Domain Registration