1
toddherrold
WebmailFX username password problem

I recently installed WebmailFX and it works fine if an email account is set using "admin email" in the module admin section. I'm trying to automate account creation for users of my site, using this feature:

Quote:
New Feature in RC2b: Now Cpanel accounts are automaticlly created when the following group permissions are set-
Go to "User Created Webmail Permissions"
1-Check "Allow webmail"
2- Make sure "user create name" is NOT checked.
3- Check "lock xoops".
That's it! Now when a user first opens webmailfx, it will check if that user already has an account. If not it will create one using his XOOPS name for the email and will generate a random password for it.


This results in multiple accounts in the webmail database when a user enters the module page and the following example error message:

Quote:
Error: -ERR Username/Password Mismatch perhaps harry@yourdomain.com ?
Error: Error: Error: -ERR Username/Password Mismatch perhaps
harry@yourdomain.com ? Error: Error: Error: -ERR Username/Password
Mismatch perhaps harry@yourdomain.com ? Error: Error: Error: -ERR
Username/Password Mismatch perhaps harry@yourdomain.com ? Error: Error:
Error: -ERR Username/Password Mismatch perhaps harry@yourdomain.com ?
Error: Error:
Account E-Mails Total Size
harry@hotdogblog.com 1 5 Kbytes
harry@hotdogblog.com 0 Kbytes
harry@hotdogblog.com 0 Kbytes
harry@hotdogblog.com 0 Kbytes
harry@hotdogblog.com 0 Kbytes
harry@hotdogblog.com 0 Kbytes


Only 1 email account in cpanel gets created per user, but multiple instances in the webmail database. this user went into the webmail module 6 times, and hence the 6 accounts plus all the error messages. It seems that webmail isn't sending the username or the password correctly, interprets that no email account exists, and then creates a new one. . . the new one works until the user exits it and comes back, at which point a new one is created. . Interestingly, this doesn not happen for accounts manually created through "admin email." These work fine.

I'm running:
Xoops 2.0.10
CPanel 9
PHP 4.3.10
Apache 1.3.33

Any ideas?

2
toddherrold
Re: WebmailFX username password problem

I just discovered something very interesting related to this problem. As earlier noted, it doesn't occur for accounts manually created via "admin email," but only on automatic, user created accounts. What is most interesting is that it also DOES NOT occur when Webmail Debug is turned on. This is why I didn't notice the problem prior to launching it. When running in debug mode, everything works fine, but when debug is turned off, each time a user logs in, the previous account password is denied and a new account is created. . . here's another error message:

Quote:

Openning Connection to: mail.hotdogblog.com
Connection opened
Sending Command: USER rickjames@hotdogblog.com
Result OK:
Sending Command: PASS 123654
Result OK:
Sending Command: NOOP
Result OK:
Sending Command: STAT
Result OK:
Openning Connection to: mail.hotdogblog.com
Connection opened
Sending Command: USER rickjames@hotdogblog.com
Result OK:
Sending Command: PASS 128776
Error: -ERR Username/Password Mismatch perhaps rickjames@yourdomain.com ? Sending Command: NOOP
Error: Sending Command: STAT
Error:

Login

Who's Online

212 user(s) are online (82 user(s) are browsing Support Forums)


Members: 0


Guests: 212


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits