
fines at macalester
Jan 22, 2010, 4:18 AM
Post #2 of 4
(1359 views)
Permalink
|
I too would like to know how to record more data in the qmail-smtpd log file. For the qmail-send log file, see the instructions at http://www.lifewithqmail.org/lwq.html#queue_extra to compile qmail with enhanced logging capabilities. Once you have your qmail working and logging as per the example in that section you can play with the .qmail-log file. Here is my .qmail-log file: | awk "/^$/ { exit } /^[dD][aA][tT][eE]\:|^[mM][eE][sS][sS][aA][gG][eE]\:|^[sS][uU][bB][jJ][eE][cC][tT]\:|^[fF][rR][oO][mM]\:|^[tT][oO]\:/ { print }" It makes qmail-send log record the date,subject,from,to and message id in the log. Note that qmail automatically replaces spaces in those lines with underscores. A few times during troubleshooting I've changed .qmail-log to: ./msg-log This causes qmail to log the entire message to a file named msg-log. Very handy for occasional use. Remember you need to bounce the log process to get it to re-read the .qmail-log file after you change it. Hope this helps, Ted On Fri, Jan 22, 2010 at 5:25 AM, Jerome SCHEVINGT <jerome [at] phibee> wrote: > Hi > > i am search a script for extract of the qmail-sent/qmail-smtpd current log > file a liste > of email sent and delivry > > Anyone have this ? > > (mail from, to, date time, job number, Ip source and answer of the remote > server) > > thanks > jerome > > -- > Jerome Schevingt > Ingénieur Systèmes et Réseaux > PHIBEE > Tel: +33(0)426847860 > Mobile: +33(0)607759222 > Fax: +33(0)426847861 > Mail: jerome [at] phibee > >
|