Always invalid login

Use this forum if you have installed hMailServer and want to ask a question related to a production release of hMailServer. Before posting, please read the troubleshooting guide. A large part of all reported issues are already described in detail here.
Post Reply
User avatar
maggiore81
Normal user
Normal user
Posts: 171
Joined: 2008-01-11 16:02
Location: near Ravenna (Italy)
Contact:

Always invalid login

Post by maggiore81 » 2011-03-06 14:52

Hello
I have a Win 2003 Standard x86 SP2.
It is a webserver, but later I had the idea to consolidate it adding another public ip address and installing hMailServer.

I configured it binding to the .12 IP and everything is fine, PHP support added and working etc.
The database is a local Ms SQL Standard 2005 SP4.

The problem is that when I login via webmail, it always tells me this:

IMAPD" 3484 1 "2011-03-06 13:38:11.421" "127.0.0.1" "SENT: * OK IMAPrev1"
"IMAPD" 3484 1 "2011-03-06 13:38:11.421" "127.0.0.1" "RECEIVED: A001 LOGIN "cristina@ballilatini.it" ***"
"IMAPD" 3484 1 "2011-03-06 13:38:11.468" "127.0.0.1" "SENT: A001 OK LOGIN completed"
"IMAPD" 3484 1 "2011-03-06 13:38:11.468" "127.0.0.1" "RECEIVED: A002 CAPABILITY"
"IMAPD" 3484 1 "2011-03-06 13:38:11.468" "127.0.0.1" "SENT: * CAPABILITY IMAP4 IMAP4rev1 CHILDREN IDLE QUOTA SORT ACL NAMESPACE RIGHTS=texk[nl]A002 OK CAPABILITY completed"
"IMAPD" 3484 1 "2011-03-06 13:38:11.468" "127.0.0.1" "RECEIVED: A003 NAMESPACE"
"IMAPD" 3484 1 "2011-03-06 13:38:11.468" "127.0.0.1" "SENT: * NAMESPACE (("" ".")) NIL (("#Public" "."))[nl]A003 OK namespace command complete"
"IMAPD" 3484 1 "2011-03-06 13:38:11.468" "127.0.0.1" "RECEIVED: A004 LOGOUT"
"IMAPD" 3484 1 "2011-03-06 13:38:11.468" "127.0.0.1" "SENT: * BYE Have a nice day[nl]A004 OK Logout completed"
"IMAPD" 3484 2 "2011-03-06 13:38:35.640" "127.0.0.1" "SENT: * OK IMAPrev1"
"IMAPD" 3484 2 "2011-03-06 13:38:35.656" "127.0.0.1" "RECEIVED: A001 LOGIN "cristina@ballilatini.it" ***"
"IMAPD" 3484 2 "2011-03-06 13:38:35.656" "127.0.0.1" "SENT: A001 OK LOGIN completed"
"IMAPD" 3484 2 "2011-03-06 13:38:35.656" "127.0.0.1" "RECEIVED: A002 CAPABILITY"
"IMAPD" 3484 2 "2011-03-06 13:38:35.656" "127.0.0.1" "SENT: * CAPABILITY IMAP4 IMAP4rev1 CHILDREN IDLE QUOTA SORT ACL NAMESPACE RIGHTS=texk[nl]A002 OK CAPABILITY completed"
"IMAPD" 3484 2 "2011-03-06 13:38:35.656" "127.0.0.1" "RECEIVED: A003 NAMESPACE"
"IMAPD" 3484 2 "2011-03-06 13:38:35.656" "127.0.0.1" "SENT: * NAMESPACE (("" ".")) NIL (("#Public" "."))[nl]A003 OK namespace command complete"
"IMAPD" 3484 2 "2011-03-06 13:38:35.656" "127.0.0.1" "RECEIVED: A004 LOGOUT"
"IMAPD" 3484 2 "2011-03-06 13:38:35.656" "127.0.0.1" "SENT: * BYE Have a nice day[nl]A004 OK Logout completed"
"IMAPD" 3484 3 "2011-03-06 13:38:35.906" "127.0.0.1" "SENT: * OK IMAPrev1"
"IMAPD" 3484 3 "2011-03-06 13:38:35.921" "127.0.0.1" "RECEIVED: A001 LOGIN "cristina@ballilatini.it" ***"
"IMAPD" 3484 3 "2011-03-06 13:38:35.984" "127.0.0.1" "SENT: A001 NO Invalid user name or password."
"IMAPD" 3484 4 "2011-03-06 13:38:36.296" "127.0.0.1" "SENT: * OK IMAPrev1"
"IMAPD" 3484 4 "2011-03-06 13:38:36.296" "127.0.0.1" "RECEIVED: A001 LOGIN "cristina@ballilatini.it" ***"
"IMAPD" 3484 4 "2011-03-06 13:38:36.343" "127.0.0.1" "SENT: A001 NO Invalid user name or password."
"IMAPD" 3484 4 "2011-03-06 13:38:36.359" "127.0.0.1" "RECEIVED: A002 LOGOUT"
"IMAPD" 3484 4 "2011-03-06 13:38:36.359" "127.0.0.1" "SENT: * BYE Have a nice day[nl]A002 OK Logout completed"
"IMAPD" 3484 5 "2011-03-06 13:42:14.984" "127.0.0.1" "SENT: * OK IMAPrev1"
"IMAPD" 3484 5 "2011-03-06 13:42:14.984" "127.0.0.1" "RECEIVED: A001 LOGIN "cristina@ballilatini.it" ***"
"IMAPD" 3484 5 "2011-03-06 13:42:15.000" "127.0.0.1" "SENT: A001 OK LOGIN completed"
"IMAPD" 3484 5 "2011-03-06 13:42:15.000" "127.0.0.1" "RECEIVED: A002 CAPABILITY"
"IMAPD" 3484 5 "2011-03-06 13:42:15.000" "127.0.0.1" "SENT: * CAPABILITY IMAP4 IMAP4rev1 CHILDREN IDLE QUOTA SORT ACL NAMESPACE RIGHTS=texk[nl]A002 OK CAPABILITY completed"
"IMAPD" 3484 5 "2011-03-06 13:42:15.000" "127.0.0.1" "RECEIVED: A003 NAMESPACE"
"IMAPD" 3484 5 "2011-03-06 13:42:15.000" "127.0.0.1" "SENT: * NAMESPACE (("" ".")) NIL (("#Public" "."))[nl]A003 OK namespace command complete"
"IMAPD" 3484 5 "2011-03-06 13:42:15.015" "127.0.0.1" "RECEIVED: A004 LOGOUT"
"IMAPD" 3484 5 "2011-03-06 13:42:15.015" "127.0.0.1" "SENT: * BYE Have a nice day[nl]A004 OK Logout completed"
"IMAPD" 3484 6 "2011-03-06 13:42:15.250" "127.0.0.1" "SENT: * OK IMAPrev1"
"IMAPD" 3484 6 "2011-03-06 13:42:15.265" "127.0.0.1" "RECEIVED: A001 LOGIN "cristina@ballilatini.it" ***"
"IMAPD" 3484 6 "2011-03-06 13:42:15.281" "127.0.0.1" "SENT: A001 NO Invalid user name or password."
"IMAPD" 3484 7 "2011-03-06 13:42:15.328" "127.0.0.1" "SENT: * OK IMAPrev1"
"IMAPD" 3484 7 "2011-03-06 13:42:15.343" "127.0.0.1" "RECEIVED: A001 LOGIN "cristina@ballilatini.it" ***"
"IMAPD" 3484 7 "2011-03-06 13:42:15.359" "127.0.0.1" "SENT: A001 NO Invalid user name or password."
"IMAPD" 3484 7 "2011-03-06 13:42:15.359" "127.0.0.1" "RECEIVED: A002 LOGOUT"
"IMAPD" 3484 7 "2011-03-06 13:42:15.359" "127.0.0.1" "SENT: * BYE Have a nice day[nl]A002 OK Logout completed"
"IMAPD" 3484 8 "2011-03-06 13:43:12.187" "127.0.0.1" "SENT: * OK IMAPrev1"
"IMAPD" 3484 8 "2011-03-06 13:43:12.203" "127.0.0.1" "RECEIVED: A001 LOGIN "cristina@ballilatini.it" ***"
"IMAPD" 3484 8 "2011-03-06 13:43:12.218" "127.0.0.1" "SENT: A001 OK LOGIN completed"
"IMAPD" 3484 8 "2011-03-06 13:43:12.218" "127.0.0.1" "RECEIVED: A002 CAPABILITY"
"IMAPD" 3484 8 "2011-03-06 13:43:12.218" "127.0.0.1" "SENT: * CAPABILITY IMAP4 IMAP4rev1 CHILDREN IDLE QUOTA SORT ACL NAMESPACE RIGHTS=texk[nl]A002 OK CAPABILITY completed"
"IMAPD" 3484 8 "2011-03-06 13:43:12.218" "127.0.0.1" "RECEIVED: A003 NAMESPACE"
"IMAPD" 3484 8 "2011-03-06 13:43:12.218" "127.0.0.1" "SENT: * NAMESPACE (("" ".")) NIL (("#Public" "."))[nl]A003 OK namespace command complete"
"IMAPD" 3484 8 "2011-03-06 13:43:12.218" "127.0.0.1" "RECEIVED: A004 LOGOUT"
"IMAPD" 3484 8 "2011-03-06 13:43:12.218" "127.0.0.1" "SENT: * BYE Have a nice day[nl]A004 OK Logout completed"
"IMAPD" 3484 9 "2011-03-06 13:43:12.453" "127.0.0.1" "SENT: * OK IMAPrev1"
"IMAPD" 3484 9 "2011-03-06 13:43:12.468" "127.0.0.1" "RECEIVED: A001 LOGIN "cristina@ballilatini.it" ***"
"IMAPD" 3484 9 "2011-03-06 13:43:12.468" "127.0.0.1" "SENT: A001 NO Invalid user name or password."
"IMAPD" 3484 10 "2011-03-06 13:43:12.515" "127.0.0.1" "SENT: * OK IMAPrev1"
"IMAPD" 3484 10 "2011-03-06 13:43:12.515" "127.0.0.1" "RECEIVED: A001 LOGIN "cristina@ballilatini.it" ***"
"IMAPD" 3484 10 "2011-03-06 13:43:12.515" "127.0.0.1" "SENT: A001 NO Invalid user name or password."
"IMAPD" 3484 10 "2011-03-06 13:43:12.531" "127.0.0.1" "RECEIVED: A002 LOGOUT"
"IMAPD" 3484 10 "2011-03-06 13:43:12.531" "127.0.0.1" "SENT: * BYE Have a nice day[nl]A002 OK Logout completed"
"IMAPD" 3484 11 "2011-03-06 13:44:57.296" "127.0.0.1" "SENT: * OK IMAPrev1"
"IMAPD" 3484 11 "2011-03-06 13:44:57.312" "127.0.0.1" "RECEIVED: A001 LOGIN "cristina@ballilatini.it" ***"
"IMAPD" 3484 11 "2011-03-06 13:44:57.343" "127.0.0.1" "SENT: A001 OK LOGIN completed"
"IMAPD" 3484 11 "2011-03-06 13:44:57.343" "127.0.0.1" "RECEIVED: A002 CAPABILITY"
"IMAPD" 3484 11 "2011-03-06 13:44:57.343" "127.0.0.1" "SENT: * CAPABILITY IMAP4 IMAP4rev1 CHILDREN IDLE QUOTA SORT ACL NAMESPACE RIGHTS=texk[nl]A002 OK CAPABILITY completed"
"IMAPD" 3484 11 "2011-03-06 13:44:57.343" "127.0.0.1" "RECEIVED: A003 NAMESPACE"
"IMAPD" 3484 11 "2011-03-06 13:44:57.343" "127.0.0.1" "SENT: * NAMESPACE (("" ".")) NIL (("#Public" "."))[nl]A003 OK namespace command complete"
"IMAPD" 3484 11 "2011-03-06 13:44:57.343" "127.0.0.1" "RECEIVED: A004 LOGOUT"
"IMAPD" 3484 11 "2011-03-06 13:44:57.343" "127.0.0.1" "SENT: * BYE Have a nice day[nl]A004 OK Logout completed"
"IMAPD" 3484 12 "2011-03-06 13:44:57.609" "127.0.0.1" "SENT: * OK IMAPrev1"
"IMAPD" 3484 12 "2011-03-06 13:44:57.609" "127.0.0.1" "RECEIVED: A001 LOGIN "cristina@ballilatini.it" ***"
"IMAPD" 3484 12 "2011-03-06 13:44:57.609" "127.0.0.1" "SENT: A001 NO Invalid user name or password."
"IMAPD" 3484 13 "2011-03-06 13:44:57.671" "127.0.0.1" "SENT: * OK IMAPrev1"
"IMAPD" 3484 13 "2011-03-06 13:44:57.671" "127.0.0.1" "RECEIVED: A001 LOGIN "cristina@ballilatini.it" ***"
"IMAPD" 3484 13 "2011-03-06 13:44:57.671" "127.0.0.1" "SENT: A001 NO Invalid user name or password."
"IMAPD" 3484 13 "2011-03-06 13:44:57.671" "127.0.0.1" "RECEIVED: A002 LOGOUT"
"IMAPD" 3484 13 "2011-03-06 13:44:57.671" "127.0.0.1" "SENT: * BYE Have a nice day[nl]A002 OK Logout completed"
"IMAPD" 3484 14 "2011-03-06 13:45:46.546" "127.0.0.1" "SENT: * OK IMAPrev1"
"IMAPD" 3484 14 "2011-03-06 13:45:46.562" "127.0.0.1" "RECEIVED: A001 LOGIN "prova@ballilatini.it" ***"
"IMAPD" 3484 14 "2011-03-06 13:45:46.578" "127.0.0.1" "SENT: A001 OK LOGIN completed"
"IMAPD" 3484 14 "2011-03-06 13:45:46.578" "127.0.0.1" "RECEIVED: A002 CAPABILITY"
"IMAPD" 3484 14 "2011-03-06 13:45:46.578" "127.0.0.1" "SENT: * CAPABILITY IMAP4 IMAP4rev1 CHILDREN IDLE QUOTA SORT ACL NAMESPACE RIGHTS=texk[nl]A002 OK CAPABILITY completed"
"IMAPD" 3484 14 "2011-03-06 13:45:46.578" "127.0.0.1" "RECEIVED: A003 NAMESPACE"
"IMAPD" 3484 14 "2011-03-06 13:45:46.578" "127.0.0.1" "SENT: * NAMESPACE (("" ".")) NIL (("#Public" "."))[nl]A003 OK namespace command complete"
"IMAPD" 3484 14 "2011-03-06 13:45:46.578" "127.0.0.1" "RECEIVED: A004 LOGOUT"
"IMAPD" 3484 14 "2011-03-06 13:45:46.578" "127.0.0.1" "SENT: * BYE Have a nice day[nl]A004 OK Logout completed"
"IMAPD" 3484 15 "2011-03-06 13:45:46.828" "127.0.0.1" "SENT: * OK IMAPrev1"
"IMAPD" 3484 15 "2011-03-06 13:45:46.828" "127.0.0.1" "RECEIVED: A001 LOGIN "prova@ballilatini.it" ***"
"IMAPD" 3484 15 "2011-03-06 13:45:46.828" "127.0.0.1" "SENT: A001 NO Invalid user name or password."
"IMAPD" 3484 16 "2011-03-06 13:45:46.875" "127.0.0.1" "SENT: * OK IMAPrev1"
"IMAPD" 3484 16 "2011-03-06 13:45:46.890" "127.0.0.1" "RECEIVED: A001 LOGIN "prova@ballilatini.it" ***"
"IMAPD" 3484 16 "2011-03-06 13:45:46.890" "127.0.0.1" "SENT: A001 NO Invalid user name or password."
"IMAPD" 2136 16 "2011-03-06 13:45:46.890" "127.0.0.1" "RECEIVED: A002 LOGOUT"
"IMAPD" 2136 16 "2011-03-06 13:45:46.890" "127.0.0.1" "SENT: * BYE Have a nice day[nl]A002 OK Logout completed"


Everytime invalid username and password.
How can I do? the userlame/password are correct for sure! I also created a new account to test it.

By POP3 I can access it correctly without problems, by PHPWebAdmin I access it perfectly. Why cannot I access it via webmail? I use nutsmail (basically squirrelmail)
Mr. Spadoni
Network Administrator
--
Spadhausen ISP
admin (at) spadhausen . com

^DooM^
Site Admin
Posts: 13861
Joined: 2005-07-29 16:18
Location: UK

Re: Always invalid login

Post by ^DooM^ » 2011-03-06 19:35

Odd,

The first part of the log, logged in ok

Code: Select all

"IMAPD" 3484 1 "2011-03-06 13:38:11.421" "127.0.0.1" "SENT: * OK IMAPrev1"
"IMAPD" 3484 1 "2011-03-06 13:38:11.421" "127.0.0.1" "RECEIVED: A001 LOGIN "cristina@ballilatini.it" ***"
"IMAPD" 3484 1 "2011-03-06 13:38:11.468" "127.0.0.1" "SENT: A001 OK LOGIN completed"
Then 27 seconds later, no login

Code: Select all

"IMAPD" 3484 3 "2011-03-06 13:38:35.906" "127.0.0.1" "SENT: * OK IMAPrev1"
"IMAPD" 3484 3 "2011-03-06 13:38:35.921" "127.0.0.1" "RECEIVED: A001 LOGIN "cristina@ballilatini.it" ***"
"IMAPD" 3484 3 "2011-03-06 13:38:35.984" "127.0.0.1" "SENT: A001 NO Invalid user name or password."
Nutsmail stole open source software and sold it btw, it's not a popular choice amongst proponents of open source software. I suggest contacting your webmail supplier and ask them why it's not working.
If at first you don't succeed, bomb disposal probably isn't for you! ヅ

User avatar
dzekas
Senior user
Senior user
Posts: 2486
Joined: 2005-10-13 21:28
Location: Lithuania

Re: Always invalid login

Post by dzekas » 2011-03-06 22:10

^DooM^ wrote:Odd
Nothing odd about it. Broken session setup. business as usual in standard PHP setup for windows. First data comes from login form, second one from session.

maggiore81:
Create PHP test script with

Code: Select all

<?php
session_write_close();
ini_set('error_reporting',E_ALL);
ini_set('display_errors',1);
var_dump(session_start());
Run it and see the error. SquirrelMail does not show or log errors on session start.

Fix PHP session.save_path
Last edited by dzekas on 2011-03-06 22:17, edited 1 time in total.

User avatar
maggiore81
Normal user
Normal user
Posts: 171
Joined: 2008-01-11 16:02
Location: near Ravenna (Italy)
Contact:

Re: Always invalid login

Post by maggiore81 » 2011-03-06 22:17

bool(true)
Mr. Spadoni
Network Administrator
--
Spadhausen ISP
admin (at) spadhausen . com

User avatar
dzekas
Senior user
Senior user
Posts: 2486
Joined: 2005-10-13 21:28
Location: Lithuania

Re: Always invalid login

Post by dzekas » 2011-03-06 22:18

maggiore81 wrote:bool(true)
You said win2003. Are you sure that it is not Win2000?

Are you testing PHP same way you use webmail. Through same website. http://something/something.php

Could you turn off secure cookies in webmail setup and check if it fixes your problem.

Or you could contact SquirrelMail or Nutsmail support and show them your PHP session configuration and $_SERVER global values.

User avatar
maggiore81
Normal user
Normal user
Posts: 171
Joined: 2008-01-11 16:02
Location: near Ravenna (Italy)
Contact:

Re: Always invalid login

Post by maggiore81 » 2011-03-07 11:42

Obvioulsy I am sure that I am on Win 2003 !!!!
Mr. Spadoni
Network Administrator
--
Spadhausen ISP
admin (at) spadhausen . com

User avatar
dzekas
Senior user
Senior user
Posts: 2486
Joined: 2005-10-13 21:28
Location: Lithuania

Re: Always invalid login

Post by dzekas » 2011-03-07 18:48

maggiore81 wrote:Obvioulsy I am sure that I am on Win 2003 !!!!
Just checking. win2k has different set of issues and it could explain why your session startup was ok.

SquirrelMail stores password information in two locations. half of password in session and other half in cookies. test script shows that your sessions can be saved correctly. This rules out broken session.save_path. Next step would be to check cookies and other session configuration. If you want to test cookies, SquirrelMail has cookie_warning plugin for that. It should work in Nutsmail too. I don't remember if they broke hooks used by plugin. If you want to debug session issues further, I've already said what kind info is needed.

Post Reply