[GH-ISSUE #1240] Superadmin Username must be valid Mailaddress else webmail authentication fails #1009

Closed
opened 2026-02-27 11:14:43 +03:00 by kerem · 3 comments
Owner

Originally created by @jakicoll on GitHub (Sep 20, 2017).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1240

Originally assigned to: @tonioo on GitHub.

I'm impressed by the great functionality and how easy modoboa is. Thank you very much! :)
However poking around a litte I guess I found a bug:

Impacted versions

  • Modoboa: 1.9.0.
  • installer used: Yes
  • Webserver: Nginx

Steps to reproduce

  • Login as superadmin and go to Identities
  • Create a new superadmin accout with user name "foo" and some password
  • Click on "Next" and then enter foo@mydomain.de as E-mail Address. Submit.
  • Logout
  • Login as foo
  • Click on Webmail

Current behavior

Webmail tries to login as user=<foo>:

Sep 20 20:29:27 vs****** dovecot[449]: imap-login: Disconnected (auth failed, 1 attempts in 2 secs): user=, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<LXLt1KRZvAB/AAAB>

Browser displays:

Error: ['[AUTHENTICATIONFAILED] Authentication failed.']

Expected behavior

Browser displays mailbox. :)

Note

If you change the username from foo to foo@mydomain.de, everything works as expected.
I guess, instead of the username, the webmail should pass the E-mail Adress associated with the username to Dovecot...

Originally created by @jakicoll on GitHub (Sep 20, 2017). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1240 Originally assigned to: @tonioo on GitHub. I'm impressed by the great functionality and how easy modoboa is. Thank you very much! :) However poking around a litte I guess I found a bug: # Impacted versions * Modoboa: 1.9.0. * installer used: Yes * Webserver: Nginx # Steps to reproduce * Login as superadmin and go to Identities * Create a new superadmin accout with user name "foo" and some password * Click on "Next" and then enter foo@mydomain.de as E-mail Address. Submit. * Logout * Login as foo * Click on Webmail # Current behavior Webmail tries to login as ```user=<foo>```: > Sep 20 20:29:27 vs****** dovecot[449]: imap-login: Disconnected (auth failed, 1 attempts in 2 secs): user=<foo>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured, session=<LXLt1KRZvAB/AAAB> Browser displays: > Error: ['[AUTHENTICATIONFAILED] Authentication failed.'] # Expected behavior Browser displays mailbox. :) # Note If you change the username from foo to foo@mydomain.de, everything works as expected. I guess, instead of the username, the webmail should pass the E-mail Adress associated with the username to Dovecot...
kerem 2026-02-27 11:14:43 +03:00
Author
Owner

@tonioo commented on GitHub (Sep 22, 2017):

I guess the simplest way to fix this issue would be to enforce same values for username and email address once the email address is defined. What do you think?

<!-- gh-comment-id:331374521 --> @tonioo commented on GitHub (Sep 22, 2017): I guess the simplest way to fix this issue would be to enforce same values for username and email address once the email address is defined. What do you think?
Author
Owner

@jakicoll commented on GitHub (Sep 22, 2017):

Good idea, that should do the trick. :)
The error message displayed to the user should explain it a little, e.g.:

"If you define or change the mail address for this account, you need to
change it's username to the same value."

<!-- gh-comment-id:331442390 --> @jakicoll commented on GitHub (Sep 22, 2017): Good idea, that should do the trick. :) The error message displayed to the user should explain it a little, e.g.: "If you define or change the mail address for this account, you need to change it's username to the same value."
Author
Owner

@makakken commented on GitHub (Jul 19, 2018):

Just a hint would be nice. I was running into same issue after fresh modoboa install. luckily i found this thread. I really think it's a reason to change to other software if webmail (which you run to test after first time installs) is not working! 👍

<!-- gh-comment-id:406204418 --> @makakken commented on GitHub (Jul 19, 2018): Just a hint would be nice. I was running into same issue after fresh modoboa install. luckily i found this thread. I really think it's a reason to change to other software if webmail (which you run to test after first time installs) is not working! 👍
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/modoboa-modoboa#1009
No description provided.