[GH-ISSUE #1471] LDAP: new user doesn't have mailbox #1157

Closed
opened 2026-02-27 11:15:35 +03:00 by kerem · 13 comments
Owner

Originally created by @josph2001 on GitHub (Apr 17, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1471

Impacted versions

  • Modoboa: 1.10.4
  • installer used: Yes
  • Webserver: Nginx

Steps to reproduce

  • Upgraded an old version (1.9) to current version.
  • LDAP authentication only
  • Create a new entry in LDAP then login modoboa.

Current behavior

  • New user can access only to Settings page, but not webmail. It shows error "Permission denied: a mailbox is required". I'm trying to enable DEBUG mode however there is no additional information.
  • Existing users can use Webmail normally.
  • I'm trying to investigate more into the issue. Here are other information
    • New user is not listed in admin panel
    • There is an entry for the new user in core_user table but not in admin_mailbox.
    • Email client (thunderbird) is working properly still.

Expected behavior

  • New ldap user should be able to use webmail after first logging in.

Video/Screenshot link (optional)

Originally created by @josph2001 on GitHub (Apr 17, 2018). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1471 # Impacted versions * Modoboa: 1.10.4 * installer used: Yes * Webserver: Nginx # Steps to reproduce - Upgraded an old version (1.9) to current version. - LDAP authentication only - Create a new entry in LDAP then login modoboa. # Current behavior - New user can access only to Settings page, but not webmail. It shows error "Permission denied: a mailbox is required". I'm trying to enable DEBUG mode however there is no additional information. - Existing users can use Webmail normally. - I'm trying to investigate more into the issue. Here are other information - New user is not listed in admin panel - There is an entry for the new user in `core_user` table but not in `admin_mailbox`. - Email client (thunderbird) is working properly still. # Expected behavior - New ldap user should be able to use webmail after first logging in. # Video/Screenshot link (optional)
kerem closed this issue 2026-02-27 11:15:36 +03:00
Author
Owner

@tonioo commented on GitHub (Apr 19, 2018):

@josph2001 Have you checked the Modoboa > Parameters > Admin page ? There is an option for that: automatic domain/mailbox creation. Set it to 'yes' and mailboxes should be created.

<!-- gh-comment-id:382651282 --> @tonioo commented on GitHub (Apr 19, 2018): @josph2001 Have you checked the Modoboa > Parameters > Admin page ? There is an option for that: automatic domain/mailbox creation. Set it to 'yes' and mailboxes should be created.
Author
Owner

@josph2001 commented on GitHub (Apr 19, 2018):

@tonioo The option is already enabled. I didn't try it yet since the beginning.

screen shot 2018-04-19 at 3 28 33 pm
<!-- gh-comment-id:382653961 --> @josph2001 commented on GitHub (Apr 19, 2018): @tonioo The option is already enabled. I didn't try it yet since the beginning. <img width="484" alt="screen shot 2018-04-19 at 3 28 33 pm" src="https://user-images.githubusercontent.com/26566869/38980204-6749068a-43e6-11e8-983c-596b15ea8817.png">
Author
Owner

@tonioo commented on GitHub (Apr 19, 2018):

What is your LDAP directory?

On 19/04/2018 10:29, josph2001 wrote:

@tonioo https://github.com/tonioo The option is already enabled. I
didn't try it yet since the beginning.

screen shot 2018-04-19 at 3 28 33 pm
https://user-images.githubusercontent.com/26566869/38980204-6749068a-43e6-11e8-983c-596b15ea8817.png


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
https://github.com/modoboa/modoboa/issues/1471#issuecomment-382653961,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AAgc7r4elpHSzYHYP8aLtm_uBRTMAS9uks5tqErngaJpZM4TXm_Y.

<!-- gh-comment-id:382654951 --> @tonioo commented on GitHub (Apr 19, 2018): What is your LDAP directory? On 19/04/2018 10:29, josph2001 wrote: > > @tonioo <https://github.com/tonioo> The option is already enabled. I > didn't try it yet since the beginning. > > screen shot 2018-04-19 at 3 28 33 pm > <https://user-images.githubusercontent.com/26566869/38980204-6749068a-43e6-11e8-983c-596b15ea8817.png> > > — > You are receiving this because you were mentioned. > Reply to this email directly, view it on GitHub > <https://github.com/modoboa/modoboa/issues/1471#issuecomment-382653961>, > or mute the thread > <https://github.com/notifications/unsubscribe-auth/AAgc7r4elpHSzYHYP8aLtm_uBRTMAS9uks5tqErngaJpZM4TXm_Y>. >
Author
Owner

@josph2001 commented on GitHub (Apr 19, 2018):

@tonioo I'm using OpenLDAP on Ubuntu.

<!-- gh-comment-id:382655950 --> @josph2001 commented on GitHub (Apr 19, 2018): @tonioo I'm using OpenLDAP on Ubuntu.
Author
Owner

@tonioo commented on GitHub (Apr 25, 2018):

@josph2001 What username is used to login?

<!-- gh-comment-id:384227344 --> @tonioo commented on GitHub (Apr 25, 2018): @josph2001 What username is used to login?
Author
Owner

@josph2001 commented on GitHub (Apr 26, 2018):

@tonioo the email address is being used to login. It will be matched with the email field in LDAP user.

<!-- gh-comment-id:384490426 --> @josph2001 commented on GitHub (Apr 26, 2018): @tonioo the email address is being used to login. It will be matched with the email field in LDAP user.
Author
Owner

@tonioo commented on GitHub (Apr 26, 2018):

Can you paste your modoboa LDAP config somewhere?

<!-- gh-comment-id:384695507 --> @tonioo commented on GitHub (Apr 26, 2018): Can you paste your modoboa LDAP config somewhere?
Author
Owner

@josph2001 commented on GitHub (Apr 27, 2018):

@tonioo Is it what you are mentioning about?

ldap_config

<!-- gh-comment-id:384918483 --> @josph2001 commented on GitHub (Apr 27, 2018): @tonioo Is it what you are mentioning about? ![ldap_config](https://user-images.githubusercontent.com/26566869/39355849-8c11538e-4a38-11e8-9b2e-79df90aa439f.jpg)
Author
Owner

@tonioo commented on GitHub (Apr 27, 2018):

@josph2001 Have you seen this issue with more than 1 user? Looks like something failed during the creation process...

<!-- gh-comment-id:384968944 --> @tonioo commented on GitHub (Apr 27, 2018): @josph2001 Have you seen this issue with more than 1 user? Looks like something failed during the creation process...
Author
Owner

@josph2001 commented on GitHub (Apr 27, 2018):

@tonioo yes, I had tried with few users in same domain or in different one.

<!-- gh-comment-id:384969907 --> @josph2001 commented on GitHub (Apr 27, 2018): @tonioo yes, I had tried with few users in same domain or in different one.
Author
Owner

@josph2001 commented on GitHub (May 17, 2018):

@tonioo as far as my observation, if I create a mailbox first from admin panel, then login with ldap credentials, everything will be fine. I guess auto mailbox creation is not working properly.

<!-- gh-comment-id:389731812 --> @josph2001 commented on GitHub (May 17, 2018): @tonioo as far as my observation, if I create a mailbox first from admin panel, then login with ldap credentials, everything will be fine. I guess auto mailbox creation is not working properly.
Author
Owner

@tonioo commented on GitHub (May 17, 2018):

@josph2001 I really don't understand what is happening... Could it be possible to access your server?

<!-- gh-comment-id:389797565 --> @tonioo commented on GitHub (May 17, 2018): @josph2001 I really don't understand what is happening... Could it be possible to access your server?
Author
Owner

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

@tonioo it seems the issue was with ldap lib (django-auth-ldap), I was upgraded to 1.6.2 (from 1.2) then everything is fine now. Thanks!

<!-- gh-comment-id:406192137 --> @josph2001 commented on GitHub (Jul 19, 2018): @tonioo it seems the issue was with ldap lib (django-auth-ldap), I was upgraded to 1.6.2 (from 1.2) then everything is fine now. Thanks!
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#1157
No description provided.