On Sun, 30 Sep 2001 19:29:10 +0200 Clemens Hermann <[EMAIL PROTECTED]> wrote:
> Am 30.09.2001 um 19:12:12 schrieb Franky Van Liedekerke: > > Hi Franky, > > thanks for the quick reply! np > > > what I did was change the logging output in qmail-ldap (which is very > > easy) so the IP is always logged in /var/log/qmail-smtpd/..., together > > with the amount of mail sent (number of recipients in one session) > > but how do you distinguish local and remote deliveries? If you need this, that's a bit more difficult. There are two options here: 1) write a script that combines the smtpd log and the delivery log (/var/log/qmail) and you'll see what gets delivered locally or remote 2) crank up the loglevel for smtpd, so you can see the RCPT commands as well (or change the code so this shows up with loglevel 2 or so). Then your script can decide wether it is a local or remote delivery (by using the locals file to compare with) and you can do your stuff. I used to do something alike but I only needed the number of rcpts, so I altered the sourcecode to just see that (it reduced the logfiles) > > > I think you need something like this (IP logging) together with number > > of mails and size or so, no? > > exactly. And some interaction between this log and > smtp-auth/smtp-after-pop. Perhaps I should add a log-facility to > smtp-auth/smtp-after-pop and compare these logs with the modified > qmail-smtpd log, or are there better ways to do this? > dunno, if you specify more exactly what you want to achieve there, maybe I can answer. The smtp-auth is just a patch, so the logging still goes to /var/log/qmail-smtpd/ ... > > (My changes are to 20010301, but I plan to port them to the latest release, > > and if anybody is interested, I can publish them.) > > certainly somebody will be interested :) > > /ch > thought you would :) Franky
