RE: POP LOG

2001-04-16 Thread Willy De la Court

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Rick,

On Monday, April 16, 2001 12:24, Rick Updegrove
[SMTP:[EMAIL PROTECTED]] wrote:
> From: <[EMAIL PROTECTED]>


> 
> I am no expert but I think you need the "2>&1" at the end of your
> qmail-pop3d/run.  I know mine has that.  I also think you "should"
> use the softlimit.

You are absolutely right rick the logging is done to stderr and not
to stdout so the 2>&1 should do the trick.

Willy De la Court

-BEGIN PGP SIGNATURE-
Version: PGPfreeware 6.5.3 for non-commercial use 

iQA/AwUBOtrQYv4IaGw3x6aJEQIZCQCgl0Gpg3dK0T2SGkABGSgx0iDln5AAoKze
j6l1Dhl+1cOJWHq5bIBrKbW9
=D0I/
-END PGP SIGNATURE-




Re: POP LOG

2001-04-16 Thread Rick Updegrove

From: "Rick Updegrove" <[EMAIL PROTECTED]>

Oops I always do that ...

> p.s.
>
> This guy even uses softlimit in his log/run script, I think I shall update mine asap.
> http://www.flounder.net/qmail/qmail-howto.html


Actually that is NOT softlimit, see  http://cr.yp.to/daemontools/multilog.html

The action
 ssize

sets the maximum file size for subsequent dir actions


> For log/run:
> #!/bin/sh
> exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t s250 
>/var/log/qmail/qmail-smtpd




Re: POP LOG

2001-04-16 Thread Rick Updegrove

From: <[EMAIL PROTECTED]>
> Hi,
> I am doing something wrong...
>
> run:
> #!/bin/sh
> exec env - PATH="/var/qmail/bin:/usr/local/bin" \
> tcpserver -H -R 0 pop3 \
> /var/qmail/bin/qmail-popup smashweb.com \
> /usr/home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir
>
> log/run:
> #!/bin/sh
> exec setuidgid qmaill multilog t /var/log/qmail/pop3d
>
> The tcpserver and multilog processes started up right, the log dir was
> created, but nothing gets logged, and the POP service deconnects clients
> shortly after establishing the connection.

I am no expert but I think you need the "2>&1" at the end of your qmail-pop3d/run.  I 
know mine has
that.  I also think you "should" use the softlimit.

DJB's page on softlimit http://cr.yp.to/daemontools/softlimit.html

bash-2.04# cat /var/qmail/supervise/qmail-pop3d/run

#!/bin/sh
exec /usr/local/bin/softlimit -m 200 \
tcpserver -v -H -R 0 pop-3 /var/qmail/bin/qmail-popup \
updegrove.net /var/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 2>&1

bash-2.04# cat /var/qmail/supervise/qmail-pop3d/log/run
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill multilog t /var/log/qmail/pop3d


p.s.

This guy even uses softlimit in his log/run script, I think I shall update mine asap.
http://www.flounder.net/qmail/qmail-howto.html

For log/run:
#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t s250 
/var/log/qmail/qmail-smtpd

Hope that helped

Rick Up




Re: POP LOG

2001-04-16 Thread cedric


Hi,

   Thank you. I patched qmail, although I am still having troubles. I guess
I am doing something wrong...

I was running qmail-pop3d with something like:

exec env - PATH="/var/qmail/bin:/usr/local/bin" \
tcpserver -H -R 0 pop3 \
/var/qmail/bin/qmail-popup smashweb.com \
/usr/home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir &

So after applying the patch I had the log messages showing up on the
terminal, so I tried running qmail-pop3d with daemontools, and created a
service.

run:
#!/bin/sh
exec env - PATH="/var/qmail/bin:/usr/local/bin" \
tcpserver -H -R 0 pop3 \
/var/qmail/bin/qmail-popup smashweb.com \
/usr/home/vpopmail/bin/vchkpw /var/qmail/bin/qmail-pop3d Maildir 

log/run:
#!/bin/sh
exec setuidgid qmaill multilog t /var/log/qmail/pop3d

The tcpserver and multilog processes started up right, the log dir was
created, but nothing gets logged, and the POP service deconnects clients
shortly after establishing the connection.

Any help greatly appreciated...


Thank you,

Cedric Veilleux,



Willy De la Court writes:

> cedric,
> 
> check http://www.quint.be/projects/ i have a poplogging patch there for qmail-pop3d 
>and qmail-popup
> 
> Willy De la Court
> 
> On Monday, April 16, 2001 01:54, [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] 
>wrote:
> > 
> > 
> > Hi,
> > 
> >I need to implement a log for the POP service. Any suggestions?
> > I'll probably have to modify qmail-pop3d's code, any hints?
> > 
> > exec env - PATH="/var/qmail/bin:/usr/local/bin" \
> > tcpserver -H -R 0 pop3 \
> > /var/qmail/bin/qmail-popup smashweb.com /
> > /usr/home/vpopmail/bin/vchkpw /
> > /var/qmail/bin/qmail-pop3d Maildir &
> > 
> > 
> > 
> > Thank you,
> > 
> > Cedric Veilleux






RE: POP LOG

2001-04-15 Thread Willy De la Court

cedric,

check http://www.quint.be/projects/ i have a poplogging patch there for qmail-pop3d 
and qmail-popup

Willy De la Court

On Monday, April 16, 2001 01:54, [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] wrote:
> 
> 
> Hi,
> 
>I need to implement a log for the POP service. Any suggestions?
> I'll probably have to modify qmail-pop3d's code, any hints?
> 
> exec env - PATH="/var/qmail/bin:/usr/local/bin" \
> tcpserver -H -R 0 pop3 \
> /var/qmail/bin/qmail-popup smashweb.com /
> /usr/home/vpopmail/bin/vchkpw /
> /var/qmail/bin/qmail-pop3d Maildir &
> 
> 
> 
> Thank you,
> 
> Cedric Veilleux



Re: POP LOG

2001-04-15 Thread Rick Updegrove

- Original Message - 
From: <[EMAIL PROTECTED]>
>I need to implement a log for the POP service. Any suggestions?

my /var/qmail/supervise/qmail-pop3d log/run script 

#!/bin/sh
exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t /var/log/qmail/pop3d




Re: POP LOG

2001-04-15 Thread Rick Updegrove


- Original Message - 
From: <[EMAIL PROTECTED]>
>I need to implement a log for the POP service. Any suggestions?