RE: [toaster] chkuser patch - logging

2004-07-26 Thread Shane Chrisp
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 s500 \
'-* *  *' '-* *  *' '+* *  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 





Re: [toaster] chkuser patch - logging

2004-07-26 Thread David
I didn't realize before. Yes, probably I have that information because
I'm using recordio inside the qmail-smtpd run script.
Here's an excerpt of qmail-smtpd run:

/usr/bin/recordio  /usr/local/bin/rblsmtpd -b -r sbl.spamhaus.org -r
relays.ordb.org \
/usr/bin/relay-ctrl-check   /var/qmail/bin/qmail-smtpd

Just place the recordio call before qmail-smtpd's call.
But you know, with recordio you're gonna log lot of information...


On Mon, 2004-07-26 at 15:14, Jeff Koch wrote:
 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 
 



RE: [toaster] chkuser patch - logging

2004-07-26 Thread Jeff Koch
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 s500 \
'-* *  *' '-* *  *' '+* *  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