Beendiid logoBeendiid
Community
Post·Self-Hosting Custom-Domain Email with Stalwart and Dokploy·July 25, 2026

Final checklist

The deployment is complete when the following are true:

B
Beendiid Caydiid
RecentPopular
Self-Hosting Custom-Domain Email with Stalwart and Dokploy

Upgrade & Recovery procedures

Pin the Stalwart image to a tested version:

B
Beendiid Caydiid
Self-Hosting Custom-Domain Email with Stalwart and Dokploy

Certificate renewal runbook

Certificate handling is the most important recurring operational concern in this architecture.

B
Beendiid Caydiid
Self-Hosting Custom-Domain Email with Stalwart and Dokploy

Storage and backup strategy

The lightweight deployment uses RocksDB and local Docker volumes.

B
Beendiid Caydiid
Self-Hosting Custom-Domain Email with Stalwart and Dokploy

Understanding SPF, DKIM, and DMARC

These systems authenticate outgoing mail.

B
Beendiid Caydiid
Self-Hosting Custom-Domain Email with Stalwart and Dokploy

Troubleshooting lessons

Symptom:

B
Beendiid Caydiid
Self-Hosting Custom-Domain Email with Stalwart and Dokploy

Phase 15: Test the complete deployment

Send from an external account to:

B
Beendiid Caydiid
Self-Hosting Custom-Domain Email with Stalwart and Dokploy

Phase 14: Connect a mail client

Use the full email address as the username.

B
Beendiid Caydiid
Self-Hosting Custom-Domain Email with Stalwart and Dokploy

Phase 13: Add calendars and contacts

Stalwart already provides CalDAV and CardDAV through its HTTP service.

B
Beendiid Caydiid
Self-Hosting Custom-Domain Email with Stalwart and Dokploy

Phase 12: Configure MTA-STS and TLS reporting

MTA-STS tells other mail servers that your SMTP service should use encrypted transport and identifies the valid MX hostname.

B
Beendiid Caydiid
Self-Hosting Custom-Domain Email with Stalwart and Dokploy

Phase 11: Mail-client discovery

Add:

B
Beendiid Caydiid
Self-Hosting Custom-Domain Email with Stalwart and Dokploy

Phase 10: Publish DNS records

After the mailbox and listeners are ready, publish the MX and authentication records.

B
Beendiid Caydiid
Self-Hosting Custom-Domain Email with Stalwart and Dokploy

Phase 9: Create mailboxes, aliases, and catch-all delivery

Do not use the administrator account as a daily mailbox.

B
Beendiid Caydiid
Self-Hosting Custom-Domain Email with Stalwart and Dokploy

Phase 8: Configure outbound delivery correctly

Navigate to:

B
Beendiid Caydiid
Self-Hosting Custom-Domain Email with Stalwart and Dokploy

Phase 7: Configure reverse DNS

Normal DNS maps a hostname to an IP address:

B
Beendiid Caydiid
Self-Hosting Custom-Domain Email with Stalwart and Dokploy

Phase 6: Configure and verify listeners

The minimum recommended listeners are: Listener Protocol Binding Implicit TLS smtp SMTP [::]:25 No submissions SMTP [::]:465 Yes submission SMTP [::]:587 No imaps IMAP [::]:993 Yes http HTTP [::]:8080

B
Beendiid Caydiid
Self-Hosting Custom-Domain Email with Stalwart and Dokploy

Phase 5: Share Dokploy’s certificate with Stalwart

Dokploy’s certificate currently protects:

B
Beendiid Caydiid
Self-Hosting Custom-Domain Email with Stalwart and Dokploy

Phase 4: Configure reverse-proxy behavior

Navigate to:

B
Beendiid Caydiid
Self-Hosting Custom-Domain Email with Stalwart and Dokploy

Phase 3: Complete the Stalwart setup wizard

On first startup, Stalwart enters bootstrap mode and prints temporary administrator credentials in its logs.

B
Beendiid Caydiid
Self-Hosting Custom-Domain Email with Stalwart and Dokploy

Phase 2: Create the public DNS and Dokploy route

In your DNS provider, add:

B
Beendiid Caydiid

copyright © 2026 Beendiid

SubscribeCommunityRSSPrivacyTermsReport

Powered by balbalobeta