Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Qmail: users

Qmail Logs scripts

 

 

Qmail users RSS feed   Index | Next | Previous | View Threaded


jerome at phibee

Jan 22, 2010, 3:25 AM

Post #1 of 4 (1454 views)
Permalink
Qmail Logs scripts

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


fines at macalester

Jan 22, 2010, 4:18 AM

Post #2 of 4 (1359 views)
Permalink
Re: Qmail Logs scripts [In reply to]

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
>
>


feh at fehcom

Jan 23, 2010, 3:12 AM

Post #3 of 4 (1344 views)
Permalink
Re: Qmail Logs scripts [In reply to]

Hi,
--On Friday, January 22, 2010 06:18:30 -0600 Ted Fines
<fines [at] macalester> wrote:

> I too would like to know how to record more data in the qmail-smtpd log
> file.

You need a patch for qmail-smtpd to provide those information.
My SPAMCONTROL patch could be useful for you (btw: this includes SMTP auth).

My additional package NEWANALYSE will allow you to get an excerpt of the
logs - customizable and don't depend on my own patches.

I will release verion 1.6.x of NEWANALYSE these days.

regards.
--eh.

>
> 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.>



Dr. Erwin Hoffmann | FEHCom | http://www.fehcom.de/


djbware at shantanukulkarni

Jan 23, 2010, 4:48 AM

Post #4 of 4 (1344 views)
Permalink
Re: Qmail Logs scripts [In reply to]

* Erwin Hoffmann <feh [at] fehcom> [100123 18:04]:
> Hi,
> --On Friday, January 22, 2010 06:18:30 -0600 Ted Fines
> <fines [at] macalester> wrote:
>
> > I too would like to know how to record more data in the qmail-smtpd log
> > file.
>
> You need a patch for qmail-smtpd to provide those information.
> My SPAMCONTROL patch could be useful for you (btw: this includes SMTP auth).

Ted may also want to try,
http://free.acrconsulting.co.uk/email/qmail-errmsg.html

The page says about it,

" This patch adds extensive logging to qmail-smtpd for netqmail-1.06.
Initial connection through to message acceptance or rejection /
disconnection is logged, with all log entries showing the process id and
remote IP address to enable identification of individual SMTP sessions. "

I am using it on a few of my servers w/o any issues for over 3 months.

Or if Ted does not wish to patch, then maybe, spamdyke from
http://www.spamdyke.org/ can be tweaked to just log w/o any filtering.

Shantanu
www.shantanukulkarni.org
--

Qmail users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.