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

Does it support LDAP and using external database? #307

Open
gobiursus opened this issue Mar 10, 2025 · 3 comments
Open

Does it support LDAP and using external database? #307

gobiursus opened this issue Mar 10, 2025 · 3 comments

Comments

@gobiursus
Copy link

Hi all.
Does mox support LDAP and using external database?
Thank you!

@mjl-
Copy link
Owner

mjl- commented Mar 10, 2025

There is no LDAP support at the moment. Also see https://github.com/mjl-/mox/issues/181.

And for external database, do you mean eg PostgreSQL for storing mailboxes/messages/accounts? No that's not an option. Mox always stores data in database files on the file system. You can make consistent snapshots of the database files with "mox backup" (you still have to copy them somewhere for long-term backup). Making the database layer replaceable would be quite some work.

@gobiursus
Copy link
Author

There is no LDAP support at the moment. Also see https://github.com/mjl-/mox/issues/181.

And for external database, do you mean eg PostgreSQL for storing mailboxes/messages/accounts? No that's not an option. Mox always stores data in database files on the file system. You can make consistent snapshots of the database files with "mox backup" (you still have to copy them somewhere for long-term backup). Making the database layer replaceable would be quite some work.

I hope we have LDAP support one day.
I meant if we use PostgreSQL or MySQL, the database better to be supported to use an existing external database. I agree with you that emails should be stored on the filesystem but maybe some metadata information can be stored on database? Anyway, it doesn't matter since Mox is not using any database

@mjl-
Copy link
Owner

mjl- commented Mar 20, 2025

Anyway, it doesn't matter since Mox is not using any database

All the metadata about messages, and also the mailboxes, is in bstore/bbolt database files. With tables, records, indexes. But it's not SQL, and you can't connect to it over the network. It's more like sqlite files, but the bstore/bbolt files cannot be opened by multiple processes at the same time. Only mox typically has the files open.

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