Balazs Nagy wrote:
>
> On Tue, 11 May 1999, Dan Peterson wrote:
>
> > hi. at www.qmail.org(/top.html), there is a mention of a patch to
> > qmail-popup and qmail-pop3d to make the log stuff to splogger, but the link is
> > broken (it points to http://www.pharos.com.au/mbp/). anyone have any idea
> > where i can pick this patch up? any help would be greatly appreciated! :)
>
> I do have a logger patch but it's broken. AFAIK it's a waste of time to
> talk about logging qmail-pop* until we cannot do logging with tcpserver.
> The problem is:
>
> supervise tcpserver qmail-popup 2>&1 | {some logger}
>
> This tcpserver opens stderr to print its log messages and opens a pipe to
> stdin-stdout for qmail-popup's connection. In fact there isn't a way to do
> logging right now.
> --
> Regards: Kevin (Balazs)
Try commenting out line 91 in qmail-popup.c:
91 /* if (fd_copy(2,1) == -1) die_pipe(); */
92 close(3);
93 if (pipe(pi) == -1) die_pipe();
94 if (pi[0] != 3) die_pipe();
95 switch(child = fork()) {
96
Now checkpasswords and qmail-pop3d's SDTERR should go where tcpservers
STDERR
goes. Set a environment variable in qmail-popup, say LOGID to provide
a session wide unique tag to use in the popup -> checkpassword -> pop3d
pipeline.
-- lars