Repository navigation
Add built-in Mail Server / Mail Service Support in Dokploy #2730
Replies: 3 comments
|
Self hosted email servers are highly likely to get blocked, either directly by the hosting provider or from the receiving mail server even when correctly configured I'm not saying it's not possible, it's just far easier to use ses |
|
What about adding openship mail as a template? 🤔 https://github.com/oblien/openship/blob/main/apps/email/Dockerfile |
|
A fully native mail server integration like Cloudron does (with DNS/MX/DKIM/DMARC management built into the panel) isnt there right now, but Dokploy already has a bunch of mail related one click templates that can get you going:
For something bigger like Mailcow, you can run it using a Docker Compose type deployment. Point it to the Mailcow repo URL, set the target compose file, pass config values as env variables and handle networking in the compose. It works fine as long as the correct ports are open (25, 143, 465, 587, 993 etc). That said, as @djsisson also mentioned, self hosting mail is genuinely painful long term. I've personally run Mailcow, Axigen, Stalwart and Mailu. IP reputation, deliverability issues, spam filtering, DKIM/SPF/DMARC tuning, blacklist monitoring... it never really ends. A lot of hosting providers also block port 25 by default. After going through all of them I ended up switching to third party providers like Google Workspace, Proton Mail, Spaceship Mail and its been way less headache. If you still want to self host, the templates above will get you there. But if its mainly about sending transactional email from your apps, something like a dedicated SMTP relay is usually a more reliable path than running a full mail server. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Hello Dokploy team — first of all, thank you for building and maintaining such a promising open-source PaaS alternative.
I want to propose adding support for hosting a mail server/mail service as a first-class feature inside Dokploy. The idea is to let users deploy and manage their own email infrastructure (SMTP, IMAP/POP, webmail, etc.) via Dokploy in a way similar to how Cloudron integrates email.
Below are motivations, use-cases, and a rough sketch of how this could be architected.
Why a built-in mail service is valuable
Full autonomy & ownership
Many users self-host their applications, but still rely on external email services (Gmail, SendGrid, etc.). Having email integrated means they can fully own their stack.
Better integration
• Automatic DNS / MX / SPF / DKIM / DMARC management
• Seamless certificate management (e.g. via Let’s Encrypt)
• Sending transactional email from apps (e.g. password resets) with local SMTP
• Inbound mail forwarding, aliases, webmail, etc.
Competitive differentiation
Cloudron is often praised for its built-in email support. Having this in Dokploy would strengthen its position as a full self-hosted PaaS.
User convenience
Many users already deploy webapps, databases, etc. Adding email as a first-class service would reduce friction and the need to spin up a separate mail server or external service.
All reactions