Fast, private webmail for your own mail server.
Golub is an open-source webmail client that runs next to Dovecot, Postfix or any IMAP and SMTP server. One small container, no PHP, no database, and nothing that tracks your users.
Everything your users expect from their mailbox.
Threads, search, encryption and contacts in the browser. Settings, contacts and signatures are saved in the user's own mailbox, so the server keeps nothing.
Fast on any folder
Sorting and paging run on the mail server, so a folder of 50,000 messages opens in a fraction of a second.
Search that finds it
Subjects, addresses or the full text, in one folder or all of them, narrowed by date, flags and attachments.
Threads
Replies grouped under the first message, opened with one click, or a plain list for those who prefer it.
Private by default
Remote images wait for permission and load through a proxy, so senders never see the reader's IP address.
OpenPGP built in
Encrypt, sign and decrypt in the browser. Works with Thunderbird, Mailvelope and other PGP/MIME clients.
Contacts and groups
Addresses suggested from contacts, groups and people you wrote to. vCard import and export.
Attachments in place
Preview images, PDF and text without leaving the message, or download anything with one click.
Undo every move
Moves and deletes can be taken back. Drag and drop, multi-select and keyboard shortcuts for the busy inbox.
Made for phones
A real mobile layout with swipe gestures and a folder drawer. No app to install.
Light and dark
Follows the system or a choice of its own. HTML mail turns dark too, with pictures kept as they are.
Single sign-on
Control panels log users straight into their mailbox with a signed, single-use token.
Your brand
Your own name, logo and accent colour from three environment variables. Text colour on buttons is picked for contrast.
And what it does differently.
Choices that make Golub easier to run, move and trust than a typical webmail.
Settings live in the mailbox
Settings, signatures, contacts and PGP keys are kept in hidden folders on the IMAP server, not in the webmail. Move the account to another server and they come along.
One IMAP connection per user
The connection stays open and is reused, instead of a new IMAP login on every click. Less load on the mail server and no "too many connections" with several tabs open.
Nothing to back up
No database and no files written at runtime. Updating is replacing the container; there is no migration to run and no user data on the webmail server.
One small container
A single Go binary with the interface built in. No PHP, no web server in front, signed with cosign and shipped with an SBOM.
Mail shown safely
HTML is sanitized on the server before the browser sees it, then shown in a sandboxed frame. Unsubscribe requests are sent by the server, not the reader's browser.
Nothing about the sender leaks
Outgoing mail carries no webmail headers, read receipts are never sent silently, and the site loads nothing from third parties.
A tenth of the memory Roundcube needs.
4.6 MB at idle, where Roundcube needs 47 MB and Afterlogic 478 MB with its database.
Questions
More in the documentation, or ask on GitHub.
What is Golub?
A self-hosted webmail client: a web app that lets people use their email account in the browser. It connects to an existing IMAP and SMTP mail server; it is not a mail server itself.
Is Golub a Roundcube alternative?
Yes. Golub covers the everyday Roundcube features, such as folders, search, threads, compose, contacts, identities, signatures and PGP, in a single Go binary instead of a PHP application with a database. Roundcube has a large plugin ecosystem for features beyond everyday mail.
Which mail servers does Golub work with?
Any server that speaks IMAP and SMTP submission. It is built and tested against Dovecot and Postfix, including docker-mailserver. Single sign-on needs a Dovecot master user.
Does Golub need a database?
No. Sessions live in an encrypted cookie, and settings, contacts and signatures are stored in the user's own mailbox in hidden IMAP folders. Restart it whenever you like.
Does it work on phones?
Yes. The interface adapts to small screens and supports swipe gestures. There is no separate app to install.
Is Golub free?
Yes. It is open source under GPL-3.0-or-later, with no paid edition and no telemetry.





Roundcube
SnappyMail
Afterlogic Lite