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

UseLoginWithoutDomain #86

Closed ghost closed 6 years ago

ghost commented 6 years ago

I'm having trouble configuring the login page.

My SMTP server settings is allow log as username but not username@example.com. I read the documents and search issues, finding LoginAtDomainValue and UseLoginWithoutDomain can help me.

In version 7.1.1, a number of options for login page configuration were added. The options are found in data/settings/settings.xml file.

First of all, you can have login page contain username field, email field or both of those - by setting LoginFormType to Login, Email or Both, respectively.

But if your login form only has the username field, WebMail Lite needs to know how to build the email address - and it does that using LoginAtDomainValue setting, so the email address is obtained by appending "@" and value of LoginAtDomainValue setting to username. Naturally, the domain will be displayed on login page right next to username field.

While some mailservers require full email address as login, others need just the username. Depending on how your server works, set UseLoginWithoutDomain to Off or On, respectively. The setting is be especially important in case if LoginFormType option is set to Login. https://afterlogic.com/docs/webmail-lite/configuring-webmail/configuring-login-page

Sadly, I found data/settings/settings.xml file is not exist. But these are config.json and config.json.bak in that folder. And I can't find LoginAtDomainValue or UseLoginWithoutDomain in the files.

Then I edited the file like that, but it seem not work:

    "LoginAtDomainValue": [
        "example.com"
    ],
    "UseLoginWithoutDomain": [
        true
    ]

I don't know what Afterlogic version is. About page doesn't provide the verison information. image

Many thanks for help.

afterlogic-support commented 6 years ago

Hello,

The settings you refer to are available in previous version 7 of WebMail Lite which can still be found at: https://afterlogic.org/webmail-lite-7

In current version, you can open Mail Servers settings and under specific mail server, check or uncheck "Use full email address as login" option.

As for version information missing, that's probably because there's no VERSION file found in root directory on WebMail. Based on the screenshot, I'm sure you run version 8.

Hope it helps.

ghost commented 6 years ago

Solved. Many thanks!

ghost commented 6 years ago

image Now I can login the Afterlogic. After a few seconds, it still said

The username or password you entered is incorrect. (MailSo-Imap-Exceptions-LoginBadCredentialsException)

I look my dovecot log, founding it is still log as username@example.com. Actullay I have uncheck "Use full email address as login" option. image

afterlogic-support commented 6 years ago

That's a known one, please see: https://github.com/afterlogic/webmail-lite-8/issues/14#issuecomment-385165077