Skip to content
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

Open
ally9335 opened this issue Dec 28, 2024 · 2 comments
Open

0.0.11 -> 0.0.13 -- webmail no longer works #268

ally9335 opened this issue Dec 28, 2024 · 2 comments

Comments

@ally9335
Copy link

ally9335 commented Dec 28, 2024

I run this:

MOXDIR=/home/aaa/mox_email
MOXBACKUPDIR=${MOXDIR}/data/tmp/backup
rm -rf ${MOXBACKUPDIR}/**
/home/aaa/mox_email/mox backup ${MOXBACKUPDIR}/data
/home/aaa/mox_email/mox verifydata ${MOXBACKUPDIR}/data
cp -rp ${MOXDIR}/config/ ${MOXBACKUPDIR}/config

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:

ssh -L <.....>

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?

@mjl-
Copy link
Owner

mjl- commented Dec 29, 2024

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 my_email.m_domain.com as the "client settings domain" for your domain m_domain.com (and similar if you have more domains). That should make the webmail available again.

You can also add additional webserver routes/handlers for the internal servers, to make them available at more domains/paths.

Hope this helps.

@ally9335
Copy link
Author

ally9335 commented Dec 29, 2024

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 mox.conf and domains.conf which are subject to change ocassionally too? Manually? By generating new mox.conf and domains.conf in /tmp, identifying the changes, if any, and then incorporating the changes into the original ones?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants