Reloop on Coolify: Self-Hosted Email Without the Complexity
Pranav Patel
Co-founder·9 min read
On this page

Deploy Reloop on Coolify with the official template: requirements, the two domains to set, DNS and PTR, first sign-in, system email, tracking domains, updates and the mistakes to avoid.
If you already run Coolify, it's the easiest way to self-host Reloop. Reloop ships an official Coolify template. You paste one YAML file, set two domains, and click Deploy. Coolify generates every secret, provisions Postgres and Redis, and issues TLS certificates.
This guide covers the whole path: requirements, deploy, DNS, first sign-in, system email, and the handful of Coolify-specific gotchas that trip people up. At the end there's a short section on the reverse direction: sending Coolify's own mail through Reloop.
Why Coolify and Reloop fit together
Coolify is an open-source, self-hosted platform-as-a-service. Think Heroku or Render, but on your own server. It gives you a UI for Docker Compose stacks, databases, environment variables, backups and HTTPS.
Reloop is open-source email infrastructure: API, SMTP relay, inboxes, campaigns and webhooks. It runs as a Docker Compose stack.
Put them together and you get your own email platform managed from the same dashboard as the rest of your apps. No shell scripts, no hand-written Caddy config.
Requirements
25, 465 and 587 open, inbound and outboundThroughout this guide we'll use reloop.example.com as the Reloop hostname and 203.0.113.10 as the server IP. Replace both with your own.
Step 1: Add the DNS records
Do this first so certificates can be issued as soon as the stack starts.
1reloop.example.com A 203.0.113.102link.reloop.example.com A 203.0.113.103inbound.reloop.example.com A 203.0.113.104reloop.example.com TXT "v=spf1 ip4:203.0.113.10 -all"reloop.example.comlink.reloop.example.cominbound.reloop.example.cominclude: resolves to itStep 2: Create the resource
- In Coolify, open your project and choose New Resource → Docker Compose. Older versions call it Docker Compose Empty.
- Paste the contents of the official template,
install/coolify/reloop.yaml, and save.
The template runs the same stack as the one-command VPS installer: the Reloop backend services, the dashboard, link tracking, Postgres, Redis and NATS.
Step 3: Set exactly two domains
Before the first deploy, replace Coolify's generated domains on these two services:
proxyhttps://reloop.example.comlinkshttps://link.reloop.example.comCoolify will warn that proxy requires port 80 and links requires port 3005. Choose Use this port anyway. Traffic still reaches those ports and your URLs stay clean. If you choose Keep required port, Coolify throws away the domain you just entered.
Leave every other service without a domain.
Step 4: Deploy
Click Deploy. The first deploy downloads about 5 GB of images, which unpack to about 22 GB.
Coolify stops any deploy that runs longer than 10 minutes. On a slow connection the first one can time out before the stack starts. That's fine: click Deploy again. Images that already downloaded are kept, so the second attempt picks up where the first left off.
Coolify generates the database password, Redis password and every Reloop secret, and stores them under Environment Variables.
Don't change any generated value after the first deploy.
- The database password is fixed once Postgres initializes.
- Changing the tracking or preferences secrets breaks links in mail you've already sent.
- Changing the webhook key breaks the signature on every existing webhook.
Step 5: First sign-in
- In Coolify, open Environment Variables and copy
SERVICE_PASSWORD_64_SETUPKEY. - Open
https://reloop.example.com/dashboard/setupand paste it. - Create the first administrator: name, email and password.
- Name your first organization.
The setup key works once. If you think it leaked before you used it, change the variable and restart. The old key stops working.
Step 6: Configure system email (don't skip this)
Setup signs you in with a session that lasts 7 days. After that, Reloop signs you in with an emailed code. If system email isn't configured, you can't get back in.
Set these under Environment Variables, then restart:
RELOOP_SENDER_DOMAINSMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASSWORD, SMTP_SECURERELOOP_API_KEYThe neat option is the last one: verify a domain in your new instance, create an API key, and let Reloop send its own sign-in codes.
Step 7: Add a sending domain and send
In the Reloop dashboard, go to Domains, add the domain you'll send from (for example mail.acme.com), and add the SPF, DKIM, DMARC and MX records it shows. Coolify-hosted Reloop doesn't support auto-populating DNS, so add them by hand. The SPF, DKIM and DMARC guide explains each one.
Then create an API key and send from your app. A fresh server IP has no reputation yet, so ramp volume up slowly with an IP warming schedule. Point the SDK at your instance:
1import { Reloop } from "reloop-email";2
3const reloop = new Reloop({4 apiKey: process.env.RELOOP_API_KEY!,5 baseUrl: "https://reloop.example.com",6});7
8await reloop.mail.send({9 from: "Acme <hello@mail.acme.com>",10 to: "you@example.com",11 subject: "Hello from Coolify",12 html: "<p>Reloop is running.</p>",13});Useful settings
All optional. Coolify lists each one under Environment Variables with its default.
DISABLE_SIGNUPtrueDISABLE_ORG_CREATIONfalseAPP_NAMEReloopS3_ENDPOINT, S3_ACCESS_KEY, S3_SECRET_KEY, S3_BUCKETDNS_RESOLVERS8.8.8.8,8.8.4.4RELOOP_VERSIONlatestKeep RELOOP_VERSION on latest so the public-facing dashboard and links services get security fixes.
Custom tracking domains
When a sending domain has click or open tracking on, it gets a link. CNAME pointing at link.reloop.example.com, so tracked links use your customer's own hostname. Coolify's proxy only issues certificates for domains it knows about, so add each tracking hostname to the links service:
https://link.reloop.example.com,https://link.customer.comKeep your own link. domain first. Reloop uses the first one as the CNAME target for new domains.
Updates and backups
Updating pulls the latest images and restarts. A migrate service runs first and updates the database schema before the backend starts.
- Back up first. Open the
postgresservice → Backups. Schedule daily backups, and run one on demand before every update. - Redeploy to pull new images.
- When a release changes
reloop.yaml, paste the new file under Edit Compose File and replace theproxyservice's Caddyfile under Persistent Storage. - Clean up old images. Each update leaves about 4 GB behind. Turn on Coolify's Docker cleanup, or run
docker image prune.
Mistakes to avoid
smtp container directlysslip.io addressIf campaigns, automations or inbox replies fail right after deploy, the server probably can't reach its own HTTPS address yet. Those features call https://reloop.example.com from inside the stack. They start working once Coolify has issued the certificate.
The other direction: send Coolify's mail through Reloop
Coolify itself sends password resets, deployment alerts and backup notifications. Point it at Reloop SMTP (hosted or your own instance) under Settings → Email:
smtp.reloop.sh (or your own instance)587rl_…)coolify@yourdomain.comApps you deploy on Coolify can use the same key. Add RELOOP_API_KEY as a secret under the app's Environment Variables and redeploy. More in the Coolify integration docs.
FAQ
Yes, as long as the server has 8 GB of RAM and 50 GB of disk free for Reloop. Don't connect Reloop to Coolify's shared predefined network.
Usually Coolify's 10-minute deploy timeout while downloading about 5 GB of images. Click Deploy again. Downloaded images are kept.
No. Reloop sends directly from your server on port 25. You only need an external SMTP provider for system email if you prefer not to use a Reloop API key for it, or if your host won't open port 25.
If you already use Coolify, use the template: you manage Reloop beside everything else. On a fresh server with nothing else on it, the one-command installer is simpler and issues tracking domain certificates automatically.
Ship your first email with Reloop
in minutes.
Open-source, deliverability-focused, and yours to self-host or run on Reloop Cloud. No lock-in, no rewrite later.


