Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create profile with Stalwart mailserver #2358

Open
johan-smits opened this issue Nov 24, 2023 · 6 comments
Open

Can't create profile with Stalwart mailserver #2358

johan-smits opened this issue Nov 24, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@johan-smits
Copy link

Description

The UI gives you a select where you can choose your e-mail. But instead this shows the username.

Expected result

Be able to select a email or give a free form as an input where you can enter an email.

Current behavior

It shows only the username and not a e-mail.

In #2315 there is an item Create Identity which is checked. But with the ldap attributes where name is uid you can't.

@johan-smits johan-smits added the bug Something isn't working label Nov 24, 2023
@chibenwa
Copy link
Member

@johan-smits did you configure aliases?

I'll add this topic to the agenda of discussion with @mdecimus : specs are ambiguous with that but Identity is the way to discover email addresses you can use.

We NEED as per spec to attach an identity upon EmailSubmission/set.
So any attempt to send a mail with arbitrary mail address, front should create an identity first. As far as I am concerned, this "free form" entry do not seem like a desirable behaviour.

@mdecimus
Copy link

Hi @chibenwa

I haven't tested this myself but what @johan-smits explained to me is that TMail does not offer a way to freely enter an email address when creating an identity. Instead it shows a drop down containing the user field from the JMAP session object which in his case it is a username and not an email address. Depending on the authentication backend configured, some Stalwart setups will display an email address in the user field but others, such as when using an LDAP server, will display the account name instead.

At the moment Stalwart does not create any identities by default and expects the user to create them. Since Stalwart supports aliases and plus addressing, users could create multiple identities for the same account.

I believe this issue could be fixed simply by replacing the email dropdown with a textbox. In the case of Stalwart, the server validates that the user is allowed to use that email address before creating the identity.

@chibenwa
Copy link
Member

TMail does not offer a way to freely enter an email address when creating an identity.

It display the list of email addresses returned by the server as mayDelete=false.

@chibenwa
Copy link
Member

I just finished a discussion with @mdecimus on this topic.

Hopefully Stallwart would be able to expose allowed email addresses when known, which should allow to fix this issue.

However, freely enter a mail address makes sense, eg with sub-abdressing. EG: [email protected] if used as an identity, somebody answering to my mail would get their emails into the JMAP folder. To that end, we would welcome contributions to add a "Enter a custom mail address" field into the drop down menu for selecting the email address.

@johansmitsnl
Copy link

@chibenwa I don't have the expertise with flutter to make such change. But @mdecimus having the e-mail field exposed will solve the issues for the majority of the users.

@mdecimus
Copy link

@johan-smits please try using Stalwart v0.5.0 released yesterday, it will automatically create an identity for each assigned email address if none is present.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants