Re: sqwebmail stopped working

"Jack Jones" <[email protected]> Thu, 7 Sep 2006 09:28:50 +0100
Newsgroups gmane.mail.sqwebmail
Message-ID <[email protected]>
------=_Part_17912_31660646.1157617730396
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

I figured it out.

The clock on the nfs server which hosted /usr/local/vpopmail/domains/ was 30
minutes behind the webserver which ran the sqwebmail cgi binary... this
resulted in an immediate logout/timeout upon a successful login.

Once i synchronized the clocks the error disappeared!

That was a tricky one - only took 7 hours for me to figure out what it was!!


On 06/09/06, Anup Singh <[email protected]> wrote:
>
> Hi,
>
> Not sure if this would work for you. Long back when i used
> courier+sqwebmail i landed myself in a situation where it always
> resulted in invalid username/password issue all of a sudden. See if it
> has anything to do with setuid bit of the sqwebmail binary. I could be
> way off target but just sharing my experience.
>
> Cheers
> Anup
>
>
> ----- Original Message -----
> From: "Jack Jones" <[email protected]>
> To: [email protected]
> Sent: Wed, 6 Sep 2006 16:24:27 +0100
> Subject: [sqwebmail] sqwebmail stopped working
>
> > Hi,
> >
> > sqwebmail's been working fine for me for months now. Recently my
> > machine
> > rebooted and now sqlwebmail's no longer working.
> >
> > Any successful logins return the following:
> >
> > Your request cannot be authenticated. Either your session has timed
> > out, or
> > your IP address has changed. If you are dialing in via a modem,
> > this can
> > happen if you get disconnected. After reconnecting, you must log in
> > again.
> >
> >
> > I have added a test account to try to debug the issue but i am
> > completely
> > stumped as to where i should look next. I have uninstalled and
> > reinstalled
> > both sqwebmail and courtier authlib's.  Even the authdaemond log
> > mentions
> > the login was successful:
> >
> > Sep  6 16:19:50 birch sqwebmaild: LOGIN: ip=[(null)],
> > [email protected]
> > Sep  6 16:19:50 birch sqwebmaild: LOGIN: ip=[(null)],
> > [email protected]
> > Sep  6 16:19:50 birch authdaemond: received auth request,
> > service=webmail,
> > authtype=login
> > Sep  6 16:19:50 birch authdaemond: received auth request,
> > service=webmail,
> > authtype=login
> > Sep  6 16:19:50 birch authdaemond: authvchkpw: trying this module
> > Sep  6 16:19:50 birch authdaemond: authvchkpw: trying this module
> > Sep  6 16:19:50 birch authdaemond: authvchkpw: sysusername=<null>,
> > sysuserid=89, sysgroupid=89,
> > homedir=/usr/local/vpopmail/domains/mydomain.com/test,
> > [email protected], fullname=test, maildir=<null>,
> > quota=<null>,
> > options=disablewebmail=0,disablepop3=0,disableimap=0
> > Sep  6 16:19:50 birch authdaemond: authvchkpw: sysusername=<null>,
> > sysuserid=89, sysgroupid=89,
> > homedir=/usr/local/vpopmail/domains/mydomain.com/test,
> > [email protected], fullname=test, maildir=<null>,
> > quota=<null>,
> > options=disablewebmail=0,disablepop3=0,disableimap=0
> > Sep  6 16:19:50 birch authdaemond: password matches successfully
> > Sep  6 16:19:50 birch authdaemond: password matches successfully
> >
> >
> > I have no idea what could be wrong! Is there any way to put
> > sqwebmail into
> > proper debug mode so i can try find out where it's going wrong?
> >
> > I just don't get it - after authdaemond returns successful
> > sqwebmail goes
> > and creates all its sqwebmail files and directories in the vpopmail
> > users
> > Maildir but it just bombs out immediately after that returning the
> > error
> > message i pasted above.
> >
> > I have searched everywhere to try diagnose the issue and as of yet
> > have
> > failed.
> >
> > The OS is FreeBSD 6.0, vpopmail+mysql+sqwebmail, the
> > /usr/local/vpopmail/domains/ directory is nfs mounted if it makes
> > any
> > difference.
> >
> > Any help would really be very much appreciated!
> >
> > THANKS!
> >
> > Jack.
>
>
>
>
> _____________________________________________________________________
>
> 70% of Web World Is Non Windows For Obvious Reasons. Time To Shift?
> Check Link Below:
> http://news.netcraft.com/archives/web_server_survey.html
>
> READ Without Opening Mail Powered By https://scorpioinformatics.com/
> _____________________________________________________________________
>
>

------=_Part_17912_31660646.1157617730396
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div>I figured it out.</div>
<div>&nbsp;</div>
<div>The clock on the nfs server which hosted /usr/local/vpopmail/domains/ was 30 minutes behind the webserver which ran the sqwebmail cgi binary... this resulted in an immediate logout/timeout upon a successful login.</div>

<div><br>Once i synchronized the clocks the error disappeared!</div>
<div><br>That was a tricky one - only took 7 hours for me to figure out what it was!!<br><br>&nbsp;</div>
<div><span class="gmail_quote">On 06/09/06, <b class="gmail_sendername">Anup Singh</b> &lt;<a href="mailto:[email protected]">[email protected]</a>&gt; wrote:</span>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hi,<br><br>Not sure if this would work for you. Long back when i used<br>courier+sqwebmail i landed myself in a situation where it always
<br>resulted in invalid username/password issue all of a sudden. See if it<br>has anything to do with setuid bit of the sqwebmail binary. I could be<br>way off target but just sharing my experience.<br><br>Cheers<br>Anup<br>
<br><br>----- Original Message -----<br>From: &quot;Jack Jones&quot; &lt;<a href="mailto:[email protected]">[email protected]</a>&gt;<br>To: <a href="mailto:[email protected]">[email protected]</a>
<br>Sent: Wed, 6 Sep 2006 16:24:27 +0100<br>Subject: [sqwebmail] sqwebmail stopped working<br><br>&gt; Hi,<br>&gt;<br>&gt; sqwebmail's been working fine for me for months now. Recently my<br>&gt; machine<br>&gt; rebooted and now sqlwebmail's no longer working.
<br>&gt;<br>&gt; Any successful logins return the following:<br>&gt;<br>&gt; Your request cannot be authenticated. Either your session has timed<br>&gt; out, or<br>&gt; your IP address has changed. If you are dialing in via a modem,
<br>&gt; this can<br>&gt; happen if you get disconnected. After reconnecting, you must log in<br>&gt; again.<br>&gt;<br>&gt;<br>&gt; I have added a test account to try to debug the issue but i am<br>&gt; completely<br>&gt; stumped as to where i should look next. I have uninstalled and
<br>&gt; reinstalled<br>&gt; both sqwebmail and courtier authlib's.&nbsp;&nbsp;Even the authdaemond log<br>&gt; mentions<br>&gt; the login was successful:<br>&gt;<br>&gt; Sep&nbsp;&nbsp;6 16:19:50 birch sqwebmaild: LOGIN: ip=[(null)],<br>&gt; username=
<a href="mailto:[email protected]">[email protected]</a><br>&gt; Sep&nbsp;&nbsp;6 16:19:50 birch sqwebmaild: LOGIN: ip=[(null)],<br>&gt; username=<a href="mailto:[email protected]">[email protected]</a><br>&gt; Sep&nbsp;&nbsp;6 16:19:50 birch authdaemond: received auth request,
<br>&gt; service=webmail,<br>&gt; authtype=login<br>&gt; Sep&nbsp;&nbsp;6 16:19:50 birch authdaemond: received auth request,<br>&gt; service=webmail,<br>&gt; authtype=login<br>&gt; Sep&nbsp;&nbsp;6 16:19:50 birch authdaemond: authvchkpw: trying this module
<br>&gt; Sep&nbsp;&nbsp;6 16:19:50 birch authdaemond: authvchkpw: trying this module<br>&gt; Sep&nbsp;&nbsp;6 16:19:50 birch authdaemond: authvchkpw: sysusername=&lt;null&gt;,<br>&gt; sysuserid=89, sysgroupid=89,<br>&gt; homedir=/usr/local/vpopmail/domains/mydomain.com/test,
<br>&gt; address=<a href="mailto:[email protected]">[email protected]</a>, fullname=test, maildir=&lt;null&gt;,<br>&gt; quota=&lt;null&gt;,<br>&gt; options=disablewebmail=0,disablepop3=0,disableimap=0<br>&gt; Sep&nbsp;&nbsp;6 16:19:50 birch authdaemond: authvchkpw: sysusername=&lt;null&gt;,
<br>&gt; sysuserid=89, sysgroupid=89,<br>&gt; homedir=/usr/local/vpopmail/domains/mydomain.com/test,<br>&gt; address=<a href="mailto:[email protected]">[email protected]</a>, fullname=test, maildir=&lt;null&gt;,<br>&gt; quota=&lt;null&gt;,
<br>&gt; options=disablewebmail=0,disablepop3=0,disableimap=0<br>&gt; Sep&nbsp;&nbsp;6 16:19:50 birch authdaemond: password matches successfully<br>&gt; Sep&nbsp;&nbsp;6 16:19:50 birch authdaemond: password matches successfully<br>&gt;<br>&gt;
<br>&gt; I have no idea what could be wrong! Is there any way to put<br>&gt; sqwebmail into<br>&gt; proper debug mode so i can try find out where it's going wrong?<br>&gt;<br>&gt; I just don't get it - after authdaemond returns successful
<br>&gt; sqwebmail goes<br>&gt; and creates all its sqwebmail files and directories in the vpopmail<br>&gt; users<br>&gt; Maildir but it just bombs out immediately after that returning the<br>&gt; error<br>&gt; message i pasted above.
<br>&gt;<br>&gt; I have searched everywhere to try diagnose the issue and as of yet<br>&gt; have<br>&gt; failed.<br>&gt;<br>&gt; The OS is FreeBSD 6.0, vpopmail+mysql+sqwebmail, the<br>&gt; /usr/local/vpopmail/domains/ directory is nfs mounted if it makes
<br>&gt; any<br>&gt; difference.<br>&gt;<br>&gt; Any help would really be very much appreciated!<br>&gt;<br>&gt; THANKS!<br>&gt;<br>&gt; Jack.<br><br><br><br><br>_____________________________________________________________________
<br><br>70% of Web World Is Non Windows For Obvious Reasons. Time To Shift?<br>Check Link Below:<br><a href="http://news.netcraft.com/archives/web_server_survey.html">http://news.netcraft.com/archives/web_server_survey.html
</a><br><br>READ Without Opening Mail Powered By <a href="https://scorpioinformatics.com/">https://scorpioinformatics.com/</a><br>_____________________________________________________________________<br><br></blockquote></div>
<br>

------=_Part_17912_31660646.1157617730396--