[GH-ISSUE #1468] LDAP: email field not filled when account is auto created #1154

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

Originally created by @ktechmidas on GitHub (Apr 13, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1468

Hi,

I got LDAP to work correctly, I can now login to Modoboa and pass through to webmail after configuring Dovecot which is great. However in webmail the from address is empty despite the mail attribute being set in LDAP.

Can someone point me in the direction of how to set this up so the from address is prefilled when sending email from webmail? I've tried putting something in there but it just clears it, so no-one can send any mail from webmail right now.

Originally created by @ktechmidas on GitHub (Apr 13, 2018). Original GitHub issue: https://github.com/modoboa/modoboa/issues/1468 Hi, I got LDAP to work correctly, I can now login to Modoboa and pass through to webmail after configuring Dovecot which is great. However in webmail the from address is empty despite the mail attribute being set in LDAP. Can someone point me in the direction of how to set this up so the from address is prefilled when sending email from webmail? I've tried putting something in there but it just clears it, so no-one can send any mail from webmail right now.
kerem 2026-02-27 11:15:34 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

The "from address" field is automatically using current user primary email (which actually corresponds to its username). Can you give more information about your user?

<!-- gh-comment-id:381043512 --> @tonioo commented on GitHub (Apr 13, 2018): The "from address" field is automatically using current user primary email (which actually corresponds to its username). Can you give more information about your user?
Author
Owner

@ktechmidas commented on GitHub (Apr 13, 2018):

Hm, odd. I made my CN the email address to make life easier for everyone when logging in (this way, they don't need to switch between username and email)

My test user's DN is:

cn=test@xxx.org,ou=staff,dc=int,dc=xxx,dc=org

And my config looks like the image I attached.
image

<!-- gh-comment-id:381044172 --> @ktechmidas commented on GitHub (Apr 13, 2018): Hm, odd. I made my CN the email address to make life easier for everyone when logging in (this way, they don't need to switch between username and email) My test user's DN is: cn=test@xxx.org,ou=staff,dc=int,dc=xxx,dc=org And my config looks like the image I attached. ![image](https://user-images.githubusercontent.com/9920871/38721275-1c8f1fee-3f2c-11e8-9406-5d975dc6806d.png)
Author
Owner

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

@ktechmidas So people use a DN when connecting to Modoboa?

<!-- gh-comment-id:381045720 --> @tonioo commented on GitHub (Apr 13, 2018): @ktechmidas So people use a DN when connecting to Modoboa?
Author
Owner

@ktechmidas commented on GitHub (Apr 13, 2018):

The CN? They just use their email address and the direct bind should make the DN out of it I think?

<!-- gh-comment-id:381046006 --> @ktechmidas commented on GitHub (Apr 13, 2018): The CN? They just use their email address and the direct bind should make the DN out of it I think?
Author
Owner

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

Sorry, I replied too quickly.

<!-- gh-comment-id:381046549 --> @tonioo commented on GitHub (Apr 13, 2018): Sorry, I replied too quickly.
Author
Owner

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

Thank you @tonioo will test it real soon!

<!-- gh-comment-id:384938646 --> @ktechmidas commented on GitHub (Apr 27, 2018): Thank you @tonioo will test it real soon!
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#1154
No description provided.