faqts : Computers : Internet : Mail Servers : qmail

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

18 of 28 people (64%) answered Yes
Recently 8 of 10 people (80%) answered Yes

Entry

How do I log incoming and outgoing email?

Dec 26th, 2008 21:25
Rockys rainwal, Raj Aryan, games games, Stephen Lombard, http://www.rajasthantravelguide.co.in/


It is possible to log all incoming and outgoing email from qmail into
one file to read with mutt or whatever flavour of mailreader suits you.
To do this, place a .qmail-log file in the alias directory (eg:
/var/qmail/alias) with the following entry:
./msg-log
This will write a file (msg-log) to /var/qmail/alias/msg-log.  If you
wish for it to be written elsewhere, ensure that the correct write
permissions are set for qmail to write to that destination.
As a side note, you can also run scripts for incoming and outgoing
emails from the .qmail-log file:
|/usr/local/bin/msg-log/msg-log.pl
./msg-log
This will pass the email to our script and record it in the msg-log
file.  This is useful to reformat headers, perform pre-processing or 
any
other tasks required for incoming and outgoing messages.
The msg-log file will no doubt become large so it is a good idea to
rotate the logs.  I simply use a script called from cron.
logrotate:#!/bin/bash
cd /var/qmail/alias
tar -zcvf msg-`date +%Y-%m-%d`-log.tar.gz msg-log
rm msg-log
http://www.jaipurtravelguide.com/
http://www.jaipurtravels.com/
http://www.jaipurjaipur.com/
http://www.jaipurtourismguide.com/
http://www.rajasthantravelsguide.com/
http://www.rajasthantravelguide.co.in/
http://www.travelpackagerajasthan.com/
http://www.namaskarindiatravels.com/
http://www.indianhotelsindia.com/
http://www.travelpackageindia.com/
http://www.navyatravels.com/
http://www.hillstationindiatour.com/
http://www.wildlifeindiatravel.com/ 
http://www.pushkartravels.com/
http://www.udaipurtravels.com/
http://www.agratravels.com/
http://indiantravelguide.co.in/
http://www.traveltoindia.biz/
http://www.info4india.com/
http://www.indiantravelsguide.com/
http://www.indiantravelguideindia.com/
http://rajasthantravelguide.wordpress.com/
http://attractioninjaipur.blogspot.com/
http://jaipurtravelsguide.blogspot.com/
http://hoteles-en-la-india.blogspot.com/
http://jaipurguiadeviajes.blogspot.com/
http://jaipurrajasthanindia.blogspot.com/
http://travelguiderajasthan.blogspot.com/
http://travelguiderajasthan.blogspot.com/
http://wildlifeindiatravel.blogspot.com/
http://indiantravelguideindia.blogspot.com/
http://indianhotelsindia.blogspot.com/
http://rajasthantravelsguide.blogspot.com/
http://pushkartravels.blogspot.com/
http://indiatravelsguide.blogspot.com/
http://goaguidedevoyage.blogspot.com/
http://goatravelsguide.blogspot.com/
http://indiaguadeviajes.blogspot.com/
http://htelseninde.blogspot.com/
http://indienguidedevoyage.blogspot.com/
http://indianhillstationsindiatravel.blogspot.com/
http://jaipurtravelguiderajasthan.blogspot.com/
http://hillstationinindia.blogspot.com/
http://jaipurcarrentals.blogspot.com/
http://indiabudgettourtravelpackage.blogspot.com/
http://romanticrajasthanhoneymoontour.blogspot.com/
http://indianadventuretourpackages.blogspot.com/
http://rajasthantraintourpackage.blogspot.com/
http://jaipurinformationguide.blogspot.com/
http://rajasthanculturaltourpackages.blogspot.com/
http://uttaranchaltourpackages.blogspot.com/
http://luxurytourspackages.blogspot.com/
http://indiahimalayatourtravelpackages.blogspot.com/
http://eastindiatravelpackages.blogspot.com/
http://indiahillstationstravelpackages.blogspot.com/
http://indiatravelpackages.blogspot.com/
http://westindiatourpackages.blogspot.com/
http://lehladakhtourpackages.blogspot.com/
http://indiabudgettourtravelpackage.blogspot.com/
http://romanticrajasthanhoneymoontour.blogspot.com/
http://worldtravelsguide.blogspot.com/
http://jaipursilverjewellery.com/
http://www.jaipurhandicrafts.com/