afterlogic / webmail-lite

AfterLogic WebMail Lite PHP. Fast and easy-to-use webmail front-end for your existing IMAP mail server, Plesk or cPanel.
https://afterlogic.org/webmail-lite
GNU Affero General Public License v3.0
443 stars 120 forks source link

Login config #74

Closed SandeepanSengupta closed 6 years ago

SandeepanSengupta commented 6 years ago

I'm having trouble configuring the login page.

I need @gmail / @roundcube styled login i.e if the login is name@example.com, user can enter either username (i.e name) or entire login (i.e name@example.com). If user enters username only, @ and example.com will be automatically appended. But if user enters entire login, it will not.

Now, according to the Afterlogic Webmail-Lite documentation I did the following

LoginFormType -> Login LoginAtDomainValue -> sandeepan.info UseLoginWithoutDomain -> On

It didn't helped.

Then I noticed that there are two files in \data\settings directory

  1. settings.xml
  2. settings.xml.bak

And it appeared that settings.xml.bak is continuously overwriting settings.xml file

I tried modifying the settings.xml.bak file and it crashed my domain (email.sandeepan.info)

Please provide a way to resolve this issue.

Note: My question may be trivial and I apologize for my limited knowledge in this topic

afterlogic-support commented 6 years ago

user can enter either username (i.e name) or entire login (i.e name@example.com).

WebMail Lite doesn't support this kind of behavior, it can only be one of those types of credentials but not both.

And it appeared that settings.xml.bak is continuously overwriting settings.xml file

This occurs if there was an error made in data/settings/settings.xml file. When modifying the file, make sure to maintain valid XML syntax.

SandeepanSengupta commented 6 years ago

WebMail Lite doesn't support this kind of behavior, it can only be one of those types of credentials but not both.

OK

This occurs if there was an error made in data/settings/settings.xml file. When modifying the file, make sure to maintain valid XML syntax.

@afterlogic-support , these are the settings I was using

<LoginFormType>Login</LoginFormType>
<LoginSignMeType>DefaultOn</LoginSignMeType>
<LoginAtDomainValue>sandeepan.info<LoginAtDomainValue/>
<UseLoginWithoutDomain>On</UseLoginWithoutDomain>
afterlogic-support commented 6 years ago

<LoginAtDomainValue>sandeepan.info<LoginAtDomainValue/>

That's incorrect XML syntax. The correct one would be:

<LoginAtDomainValue>sandeepan.info</LoginAtDomainValue>

SandeepanSengupta commented 6 years ago

Thank you @afterlogic-support