Original Redmine Issue: 71
Author Name: Anonymous
* Problem *
I created a Yunohost user with pseudonym as username for SSO/LDAP and some other name for email : [email protected]
It works perfectly in RoundCube (after some troubles because of missing username homedir in /var/mail), but not in desktop/non-web email clients such as clients IceDove (Thunderbird)
IceDove asks for both user in [email protected] and the logging username
The logging username is the SSO username
Just to make things clear, even thought RainLoop does not have an SSO/LDAP-based auth but uses plain IMAP(S)/SMTP(S), it accepts username as login, but not user value from the email address, as manually filled in email field, in Yunohost user creation interface
After user RainLoop for debugging, I just used [email protected] for email address field, and username in outgoing/incoming username fields
NB : before knowing about RainLoop, I tried many combinations with and without the SSO username (user from [email protected] as incoming/outgoing username), if not all the logical ones
So let's suppose I created user1 with [email protected] as email address
My IceDove configuration looks like this
**Email address** : [email protected]
**Password** : The same as the SSO passwords, works with Rainloop, Roundcube and XMPP clients
### IMAP
**Domain** : domain.tld (full, with a subdomain, the same as defined in Yunohost and my zone DNS file)
**Protocol** : SSL/TLS
**Port** : 993
**Incoming username** : user1
### SMTP
**Domain** : domain.tld (full, with a subdomain, the same as defined in Yunohost and my zone DNS file)
**Protocol** : SSL/TLS
**Port** : 465
**Incoming username** : user1
But it still doesn't work, IceDove fails to verify the configuration, and can't connect
For some reasons, it looks like IceDove (and probably other email clients) doesn't work properly when username is different from user in [email protected]
- Workaround
I decide to make things simpler and more consistent
I edit my user's profile, changing it's address from user2 to user1, so user from email address has the same value as SSO username
I deleted user1 homedir from /var/mail, then reacted it
1. sudo rm -r /var/mail/user1
1. sudo mkdir -p /var/mail/user1
1. sudo chown -hR vmail:mail /var/mail/user1
1. sudo /sbin/mkhomedir_helper /var/mail/user1
I restarted dovecot and postfix
1. sudo systemctl restart dovecot
1. sudo systemctl restart postfix
Then I edited IceDove account configuration accordingly, I kept the previous conf but changed the email address, now it works properly
- Suggestion
Until a better solution could be found
Either make it clear it the documentation, that's it's recommended to have the same value for both user in the email address and username for SSO auth, for users who wish to use a non-web email client
Or automate the process by enforcing the same value between both, and not allowing users to modify one value independently from the other
You can for example do it in an conditional manner, by asking the Yunohost admins if they wish to use a non-web/remote client, when they create users
If yes, then enforce the same value for both SSO username and user in [email protected], if not then they could use different values
(Even if different values might be confusing for configuring remote clients)