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

Running two mox servers and syncing with them #227

Open
exander77 opened this issue Oct 14, 2024 · 2 comments
Open

Running two mox servers and syncing with them #227

exander77 opened this issue Oct 14, 2024 · 2 comments

Comments

@exander77
Copy link

I would like to run two mox servers in different location with one primary and one secondary and syncing data between them.

How to achieve this?

@mjl-
Copy link
Owner

mjl- commented Oct 18, 2024

This is not currently possible with mox, I think it will come at some point in the future. The complication is that quite some state should be synchronized between the mail servers. Not just which accounts exists. But also historic classifications: That's what mox uses for its junk filtering. If the secondary MX is independent, it couldn't do (the same) proper junk filtering, and spammers would just get email delivered through the secondary MX, bypassing any filtering on the first.

I think this will require changes relatively deeply in the database storage layer to do the synchronization. Probably with some proper failover mechanism. It's a relatively big feature, and I would want it to solve the problem in an easy to use way (configure the primary with the address & keys of the secondary, then install a mox in secondary mox on a new machine and configure it with the key of the primary, and have it all work automatically from there on).

Also see https://www.xmox.nl/faq/#hdr-how-do-i-configure-a-second-mox-instance-as-a-backup-mx

@exander77
Copy link
Author

I like the idea of primary and secondary, like I have it with DNS server.

It has to synchronize everything, both in real time and historically, if one instance was unavailable for a while. Kinda like, master-master replication.

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