Changes

  • Added a new one-click service template for Docker Mailserver.
  • Created templates/compose/docker-mailserver.yaml with:
    • Exposed ports: 25 (SMTP), 465 (SMTPS), 587 (Submission), 993 (IMAPS)
    • 4 persistent volumes for mail data, state, logs, and configuration
    • DKIM, SPF, and DMARC support
    • Optional ClamAV and SpamAssassin
    • Fail2Ban enabled
    • Healthcheck, restart policy, entrypoint, and required Linux capabilities
    • 26 configurable environment variables
    • Auto-generated postmaster account
  • Added service icon at svgs/docker-mailserver.svg.
  • Verified valid YAML structure including all 6 required Coolify metadata fields.

This adds a reusable, production-ready email server stack suitable for managing multiple domains within Coolify.


Issues

  • fixes: #8266
  • /claim #8266

Category

  • Adding new one click service

Screenshots or Video (if applicable)

Screenshot 2026-02-11 at 9 48 49 AM Screenshot 2026-02-11 at 9 56 48 AM

AI Usage

  • AI is NOT used in the process of creating this PR

Steps to Test

  • Step 1 – Pull this branch and enter the Coolify container.
  • Step 2 – Run php artisan generate:services to regenerate service-templates.json.
  • Step 3 – Open the Coolify dashboard and navigate to Create → One-Click Services.
  • Step 4 – Verify that Docker Mailserver appears in the service list with the envelope icon.
  • Step 5 – Create a new instance and confirm that:
    • All 4 ports (25, 465, 587, 993) are exposed.
    • 4 persistent volumes are created.
    • Environment variables are configurable.
    • The container starts successfully and passes the healthcheck.

Contributor Agreement

[!IMPORTANT]

  • I have read and understood the contributor guidelines. If I have failed to follow any guideline, I understand that this PR may be closed without review.
  • I have tested the changes thoroughly and am confident that they will work as expected without issues when the maintainer tests them.

Claim

Total prize pool $7.50
Total paid $0
Status Pending
Submitted February 11, 2026
Last updated February 11, 2026

Contributors

HA

Harsh Pratap Singh

@harsh-pratap9904-gmail-com

100%

Sponsors

EN

Enrico Angelon

@enricoangelon

$7.50