[prev in list] [next in list] [prev in thread] [next in thread]
List: qmail-ldap
Subject: Re: Problem with auth pop and connection forwarding, had to patch auth_pop.c
From: Claudio Jeker <cjeker () diehard ! n-r-g ! com>
Date: 2002-09-26 7:25:46
[Download RAW message or body]
On Wed, Sep 25, 2002 at 11:44:17PM +0200, Enrico Cavalli wrote:
> Hi, this is the first time I write to the list. I'm new to qmail, but I
> really want to use it to deploy a cluster for a large number of
> mailboxes.
>
> I use RedHat Linux 7.3, qmail-1.03, qmail-ldap-1.03-20020901.patch, the
> latest daemontools, ucspi-tcp, qmail-conf...
>
> smtp, qmqpd, everything works fine (I read life with qmail and life with
> qmail-ldap, everything is very clear).
>
> even pop3 works if I connect to a machine which is the mailHost for a
> given user.
>
> The problem is when I connect to mail2 and for example my mailHost is
> mail1: the connection gets forwarded, and mail2 sends the "user ..."
> part of the pop3 dialog to mail1. I checked this with tcpdump and later
> on with DEBUG on the mail2 side.
>
> I worked 2 days on this problem and it was getting me crazy when ....
> this evening I decided to look at auth_pop.c, in particular I modified
> auth_forward() and set to
>
> substdio_put(&ss, "\r\n", 2);
>
> the two lines which were
>
> substdio_put(&ss, "\r\n", 1);
>
> Now everything works perfectly. Please keep in mind that
>
> 1. I don't undestand C very well
> 2. I knew the problem is when the forwarder waits for the OK after
> sending user login
> 3. I suppose that the third parameter in substdio_put counts the number
> of character you have to put in some file descriptor
>
> If someone can tell me something about that I'll be extremly grateful.
>
Your fix is absolutly correct. I changed from LFCR to CRLF, the problem
is that since then only a "\r" is transmitted whereas earlyier only a
"\n".
qmail-pupup searches for "\n" and therefor since the last patch it does no
longer work correctly.
I fixed it now.
Thanks
--
:wq Claudio
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic