Golub

Troubleshooting

Start with the logs:

docker logs golub

Set GOLUB_LOG_LEVEL=debug for more detail.

Golub exits right after starting

The log names the variable that is wrong, for example GOLUB_SECRET_KEY: must decode to 32 bytes. Check it against Configuration. The secret key must come from openssl rand -base64 32; a word like change-me is refused.

GOLUB_IMAP_TLS: none is only allowed for loopback or private hosts

You turned TLS off for a mail server on a public address. Use implicit or starttls with the host name on the server's certificate.

"The mail server is not reachable right now"

Golub can't connect to IMAP. Check GOLUB_IMAP_HOST, the port and the TLS mode, and that the container can reach the server (same Docker network, firewall). A certificate error shows in the logs; for a private CA set GOLUB_TLS_CA.

Sign-in says the password is wrong, but it works elsewhere

Golub signs in with the full email address as the user name. Check that your IMAP server accepts that form.

Single sign-on sends users to the login page

See Single sign-on. The usual causes are clocks out of sync between the panel and the Golub host (tokens live only 60 seconds), a different GOLUB_SSO_SECRET on the two sides, or Dovecot not accepting the master user.

New mail only appears after a while

Golub pushes new mail over a long-lived connection to /api/events. A reverse proxy that buffers responses holds it back; turn buffering off for Golub (proxy_buffering off; in nginx), see Installation. Golub still checks on the interval set in Settings either way.

Sending fails

Check GOLUB_SMTP_HOST, GOLUB_SMTP_PORT and GOLUB_SMTP_TLS. If sending works but the Sent copy is missing, the notice says "Message sent, but the copy could not be saved to Sent"; check that the Sent folder exists or pick it in Settings → Special folders.

Users are signed out after every restart

GOLUB_SECRET_KEY changes between restarts. Set a fixed value instead of generating one at startup.

Reporting a bug

Open an issue on GitHub with the Golub version from /healthz, what you did, and the relevant log lines. Please report security problems privately to the maintainer, not in a public issue.

Edit this page on GitHub

Your mail server deserves a better webmail.

The real interface with made-up mail. Nothing to install, no sign-up.

Golub showing the inbox with an open message