Hi Jeff,

This will filter for 4xx and 5xx error codes and also shows the helo
part of the smtp conversation. I find it handy at times for blocking
some of the known spam mailers that are out there running on windows.

I should have also noted that David is correct in saying that you need
to be using recordio in the qmail-smtpd/run file startup script as well.

cheers
Shane 

>-----Original Message-----
>From: Jeff Koch [mailto:[EMAIL PROTECTED] 
>Sent: Monday, 26 July 2004 9:47 PM
>To: [EMAIL PROTECTED]
>Subject: RE: [toaster] chkuser patch - logging
>
>
>Hi Shane:
>
>Thanks - what exactly is this code doing?
>
>At 09:18 AM 7/26/2004, you wrote:
>>You can log extra information to the log file like this. Note 
>that this
>>is overkill for most, but I like it cause it shows a lot more 
>info without
>>the need to go back and forth between the send and smtpd logs.
>>
>>#!/bin/sh
>>exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog 
>t s5000000 \
>>'-* * > *' '-* * < *' '+* * < HELO *' '+* * < MAIL *' '+* * < 
>RCPT *' '+* *
>> > 5*' '+* * > 4*' /var/log/qmail/smtpd
>>
>>
>>Regards
>>
>>Shane
>>
>>
>> >-----Original Message-----
>> >From: Jeff Koch [mailto:[EMAIL PROTECTED]
>> >Sent: Monday, 26 July 2004 9:14 PM
>> >To: [EMAIL PROTECTED]
>> >Subject: Re: [toaster] chkuser patch - logging
>> >
>> >Hi David:
>> >
>> >Thanks but is there something I need to turn on. We have the
>> >chkuser patch
>> >working on three mailservers ( I know because of the rejection
>> >replies to
>> >test messages) but there are no entries in the
>> >/var/log/qmail/smtpd logs.
>> >
>> >At 02:49 AM 7/26/2004, you wrote:
>> >>Yes, you will find in the smtpd log file lines like this:
>> >>
>> >>550 sorry, no mailbox here by that name (#5.1.1 - chkusr)
>> >>
>> >>On Mon, 2004-07-26 at 07:04, Jeff Koch wrote:
>> >> > Hi:
>> >> >
>> >> > Does anyone know if there is any logging of connections
>> >rejected by the
>> >> > chkuser patch?
>> >> >
>> >> >
>> >> > Best Regards,
>> >> >
>> >> > Jeff Koch, Intersessions
>> >> >
>> >
>> >Best Regards,
>> >
>> >Jeff Koch, Intersessions
>> >
>> >
>
>Best Regards,
>
>Jeff Koch, Intersessions 
>
>

Reply via email to