-
Notifications
You must be signed in to change notification settings - Fork 117
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
0.0.11 -> 0.0.13 -- webmail no longer works #268
Comments
The v0.0.12 release has some changes around serving the webmail/account/admin interfaces. See https://github.com/mjl-/mox/releases/tag/v0.0.12 and in particular this commit message that explains it in more detail: 614576e. It sounds like you could be helped by setting You can also add additional webserver routes/handlers for the internal servers, to make them available at more domains/paths. Hope this helps. |
I see, yes. Since the format of the config has been changed, how's one supposed to upgrade mox properly? An executable is upgraded by compilation and replacement of the original one. How about |
The proper upgrade path is just replacing the binary. The goal is to not make any breaking changes. The release notes normally call out topics that may need your attention in the "Update instructions". I likely thought the change was only fixing something, but it broke your use-case... I hope you got the web interfaces working again with the latest mox version in the mean time? |
But it's already there and has been: Although, for the rest of the domains, But for the main one, the although, I may have found a mistake there |
My main email domain isn't Now it's become to work as I've fixed the spelling. What are Hostname for client settings? What kind of settings? |
Is this related?
===> 403 - forbidden - no session The same occurs in the incognito mode. |
ClientSettingsDomain is the hostname to configure in smtp and imap (and also where the mail & account web interfaces are served). Also see https://www.xmox.nl/config/#cfg-domains-conf-Domains-x-ClientSettingsDomain. Consider this example setup with multiple domains:
We could tell users of accounts with an address at example.org, dom1.example, dom2.example to configure their email clients with an SMTP & IMAP server of mx.example.org. But if we want to migrate the domain away to another machine/mail server in the future, that means you would have to tell users to change the SMTP & IMAP servers in their email clients. The admin web interface is only served at the server hostname, Hope this helps. |
I see, thx.
Yes, 404. Where has |
So it should still be at /admin/ on your mx hostname. |
Nginx as a reverse proxy is how I've used it. And now |
When using nginx (or any reverse proxy), make sure the hostname is forwarded in the request too. I think I've heard of situations where nginx would just make requests to eg http://127.0.0.1:.../. In that case, mox won't see the original hostname and won't serve the web interface. The http access logging may help diagnose that situation. For completeness (and assuming you want to enable the admin interface on the public IP), you could check again that you have an AdminHTTP and/or AdminHTTPS section on the "public" Listener with Enabled: true in mox.conf. In the default quickstart config that won't get enabled. At least, I think from your comment that the admin interface is not yet working as you intend. Or is it already all good? |
…th is requested, mention the web interface this is about may help users understand when /admin/ isn't enabled on a hostname but the account web interface is at /. the error will now say: no session for "account" web interface. it hopefully tells users that their request isn't going to an admin interface, but ends up at the account web interface. for issue #268
Nginx is how I've used it thus far. And it's worked well. |
I run this:
Then I downloaded the source code, compiled it and replaced the executable, only it (!), with the freshly compiled one. Restarted mox and nginx.
And I open webmail at
my_email.m_domain.com
and it returns "404 not found". Restarted nginx, mox -- to no avail.No errors in the logs of mox.
IMAP, on desktop, did work properly. And webmail via port redirection too:
Then I restore the original executable, 0.0.11 and it, webmail, at
my_email.m_domain.com
has begun to work again.What's the matter?
The text was updated successfully, but these errors were encountered: