RainLoop / rainloop-webmail

Simple, modern & fast web-based email client
http://rainloop.net
MIT License
4.1k stars 890 forks source link

custom login mapping doesn't work #1235

Open gravuz opened 7 years ago

gravuz commented 7 years ago

On Rainloop 1.10.4.183 the plugin custom-login-mapping doesn't work. After setting up the plugin i can't login in webmail by the user i set. The error is: Authentication failed. Thanks you

ervee commented 7 years ago

I'm using that version and have no issue with the user mapping.

Did you enable the plugin? And configured it correctly? blabla@mydomain.com:actual_username

Then you must login with the e-mail address blabla@mydomain.com, not the actual_username.

Also don't forget if you use a whitelist on the domain to include the actual_username in the whitelist, not the email addresses.

gravuz commented 7 years ago

yes, but if it's enable i can't login with my e-mail address or the username i set. I'm not using the whitelist

ervee commented 7 years ago

Please enable RainLoop logging and post your logs.

tomas4 commented 3 years ago

The plugin does not work for me either. First i have found issue #1012 , so i added the comment there, but this one seems more appropriate, since OP problem seems identical to mine and I have the logs requested. Here goes slightly edited copy of my reply in the other issue. I hope it can help or you guys can tell me what I am doing wrong:

The situation: My e-mail address is in the form of Jan.Novak@example.com, IMAP username is in the form jano1234@example.com (actual email and user differs, but the part @example.com really is integral and essential part of the username). The e-mail server is in fact outlook.com corporate account. I have added settings for the example.com domain.

Without using the plugin, I am able to get into my account and read and send e-mails, if I actually use jano1234@example.com as e-mail address when adding the account to RainLoop. But in this case jano1234@example.com is also the From: address in the sent e-mails. I can set the Reply-To: to the correct address, but many e-mail clients do not respect this and even in cases when they do, the recipient still sees my email as received from nonexistent address jano1234@example.com.

With the plugin So I installed the plugin and set the rule according the hint in the window (email:user) to: Jan.Novak@example.com:jano1234@example.com

But when I try to add the account by the address Jan.Novak@example.com with the plugin configured, I always get authentication failed, so it seems the plugin just does not work as stated in the issue title. If I use the username jano1234@example.com to create the account (but it surely is not right, since you are asked to fill e-mail, not username), then the situation is exactly the same as without the plugin as described above, i.e. wrong from: address - so the plugin has no effect either. I also enabled logging during attempt to add the account with the Jan.Novak@example.com email and the jano1234 string is not in the logs anywhere. It seems the e-mail is being sent to the imap server as login name (actual email changed to Jan.Novak@example.com, plain text password or row of stars replaced by "HIDDEN"):

log-2020-10-23.txt

FreemoX commented 2 years ago

A little late to the party, but this is still the top result for this issue, so this is to contribute to a clear answer towards this.

The plugin allows the admin to define two values; a nice friendly email people can use to log in with, and a corresponding ugly mx server username. These are separated by a colon ( : ) respectively. Now, on my mx server, I use arbitrary usernames. Let's say mine is 'mydomain4', and my domain is 'mydomain.com'. In order to login normally, I'd have to login with 'mydomain4@mydomain.com'. But this plugin allows me to predefine 'hello@mydomain.com' to login with instead.

TL;DR Email I need to log in with = mydomain4@mydomain.com My domain = mydomain.com MX Server username = mydomain4 Email I want to log in with = hello@mydomain.com

Login mapping to use = hello@mydomain.com:mydomain4

I made this pull request #2147 to append a simple usage explanation to the readme/tooltip for the plugin