Sign in and invite your team
HelloBox is reachable. Now make your account, decide who else can sign up, and, if you want, set up the admin tool.
Create your account
- Open
https://mail.example.comand choose Sign up. - Enter your email address and a password. Use the address you put in
ADMIN_EMAILS. - HelloBox emails you a link. Open it to confirm your address.
- Follow the short setup to name your workspace. A workspace is your team's shared space: its domains, mailboxes and people.
The email doesn't come? Look in the spam folder first. Then read the web app's log on the server:
cd ~/hellobox/docker
docker compose logs web --tail 50It shows why sending failed, usually a wrong SMTP_URL or an EMAIL_FROM your provider
doesn't let you send from. Fix .env, run docker compose up -d, and ask for a new link.
Invite your team
Open Settings → Team and invite people by email. They get an email with a link and create their account with the address you invited. Each person is a Member or an Admin; admins can connect providers and manage the team.
Close sign-ups
Right now anyone who finds your address can create an account and a workspace of their
own. Once your account exists, close sign-ups. Add this line to .env (or set it, if it's
there already):
ALLOW_SIGNUPS=falseThen apply it:
docker compose up -dFrom then on, only two kinds of people can create an account: the addresses in
ADMIN_EMAILS, and people invited to a workspace. Everyone who already has an account signs
in as before.
Sign in with Google or GitHub
Optional. It adds Continue with Google and Continue with GitHub buttons to the sign-in page. Each button shows once both of its settings are filled in.
-
Open the Google Cloud console, and create a project (or pick one).
-
Go to APIs & Services → OAuth consent screen and fill in the app name and your email.
-
Go to APIs & Services → Credentials → Create credentials → OAuth client ID.
-
Choose Web application. Under Authorized redirect URIs, add
https://mail.example.com/api/auth/callback/google. -
Copy the client ID and client secret into
.env:GOOGLE_CLIENT_ID=<client ID> GOOGLE_CLIENT_SECRET=<client secret>
GitHub
-
On GitHub, open Settings → Developer settings → OAuth Apps → New OAuth App.
-
Homepage URL:
https://mail.example.com. Authorization callback URL:https://mail.example.com/api/auth/callback/github. -
Create it, then Generate a new client secret.
-
Copy both into
.env:GITHUB_CLIENT_ID=<client ID> GITHUB_CLIENT_SECRET=<client secret>
Run docker compose up -d after either one.
The admin tool
hellobox-admin is a terminal tool for whoever runs the instance: usage numbers, every
user and workspace, and bans or suspensions. It's separate from the admins inside a
workspace. Only addresses in ADMIN_EMAILS can use it, and only after they've signed up and
confirmed that address. With ADMIN_EMAILS empty, the tool can't connect at all.
You install it on your own computer, not the server. It needs Rust and
a C compiler (on Ubuntu sudo apt install build-essential; on macOS
xcode-select --install; on Fedora sudo dnf install gcc). Then:
git clone https://github.com/HelloboxGH/hellobox.git
cd hellobox
cargo install --path tools/admin
hellobox-admin loginlogin asks for your HelloBox address and opens the browser, where you approve the
sign-in. After that, hellobox-admin opens the dashboard.
After you change ADMIN_EMAILS in .env, run docker compose up -d on the server.
Next: Connect your email provider.
Something wrong or missing? Open an issue or edit the file in the repository.
Turn on HTTPS
HelloBox only listens on the server itself: the app on port 3000, the storage on port 9000. Here you install Caddy, a reverse proxy that makes both reachable from the internet over HTTPS. Caddy gets a free certificate from Let's Encrypt and renews it by itself, so you never have to think about it again.
Connect your email provider
HelloBox doesn't send or receive email by itself. It works through your account at an email provider: Postmark, Mailgun, Resend or Amazon SES. Your mail keeps going through that account, under your name and reputation; HelloBox shows it to your team and sends the replies.