Skip to content

docs: PROXY protocol (Traefik) - Fix config typo#4483

Merged
polarathene merged 1 commit intodocker-mailserver:masterfrom
Blitz-Cloud:patch-1
May 22, 2025
Merged

docs: PROXY protocol (Traefik) - Fix config typo#4483
polarathene merged 1 commit intodocker-mailserver:masterfrom
Blitz-Cloud:patch-1

Conversation

@Blitz-Cloud
Copy link
Copy Markdown
Contributor

When the entrypoints for traefik are defined there are named mail-*(smtp,...), but it the dms labels when it comes to using these entry point in the TLS section just smtp is used, and for TLS it is used smtp-submissions witch is an invalid entrypoint

Description

I tried recreating the setup for DMS using traefik as a reverse proxy, but instead of writing the entrypoints in the docker compose file, i used the toml version to do this. Following the docs and translating the cli commands into the toml I got this:

...............
entryPoints:
  mail-smtp:
    address: ":25"
  mail-submission:
    address: ":587"
  mail-submissions:
    address: ":465"
  mail-iamp:
    address: ":143"
  mail-imaps:
    address: ":993"
  mail-pop3:
    address: ":110"
  mail-pop3s:
    address: ":995"
  mail-managesieve:
    address: ":4190"
...............

The code above is created based on this part of the docs

The problem arises when in the DMS labels because in the name of the entrypoints used aren't matching what is defined in the traefik configuration.

All i did is to change the name of the entrypoints for TLS and SSL to match what was declared.

Type of change

  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist

  • I have performed a self-review of my code

When the entrypoints for traefik are defined there are named mail-*(smtp,...), but it the dms labels when it comes to using these entry point in the TLS section just smtp is used, and for TLS it is used smtp-submissions witch is an invalid entrypoint
@casperklein casperklein requested a review from Copilot May 22, 2025 18:45
@github-actions
Copy link
Copy Markdown
Contributor

Documentation preview for this PR is ready! 🎉

Built with commit: 423e90c

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR corrects the Traefik label entrypoint names in the mailserver-behind-proxy tutorial so they match the entryPoints defined in the TOML.

  • Rename smtpmail-smtp for STARTTLS configuration
  • Rename smtp-submissionsmail-submissions for implicit TLS on port 465
Comments suppressed due to low confidence (1)

docs/content/examples/tutorials/mailserver-behind-proxy.md:122

  • The tutorial defines a mail-submission entrypoint (port 587) in the TOML but doesn’t show its STARTTLS setup. Consider adding a snippet or note for configuring the mail-submission entrypoint similarly to mail-smtp for completeness.
# Implicit TLS is no different, except for optional HostSNI support:

Copy link
Copy Markdown
Member

@polarathene polarathene left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for spotting this ❤️

I believe I noticed this too a few months back but got side-tracked before I PR'd a correction 😓

If you have any other feedback about that page please let me know.

I'm not a Traefik user myself, and there are a variety of ways to configure it. Is the labels approach most suitable/common? Or would our documentation be better for Traefik users if we documented a different config for readability/clarity instead of the labels?


For the most part many users have been mistakenly using that guide just because they have Traefik, but the focus is meant to be on PROXY protocol and solving a use-case there when that's actually required (Kubernetes ingress or other proxy layer between client and DMS).

This setup is quite a bit verbose, and only needed when routing traffic to DMS through a reverse proxy like Traefik. Since DMS should be the only mailserver instance using those ports, we tend to advise keeping it simple and just exposing the ports directly. DMS after all needs to terminate TLS itself so Traefik is rarely providing any added benefit like it would with your web services.

@polarathene
Copy link
Copy Markdown
Member

polarathene commented May 22, 2025

@georglauterbach @casperklein did either of you enable Copilot for the repo? Or is this something Github is rolling out itself? First time I've seen it engaging in our PRs.

EDIT: Oh I see @casperklein requested it 😅 Well that's new to me.

@polarathene polarathene added this to the v15.1.0 milestone May 22, 2025
@polarathene polarathene changed the title Update mailserver-behind-proxy.md docs: PROXY protocol advice for Traefik should reference correct entrypoints May 22, 2025
@polarathene polarathene merged commit 61c9b21 into docker-mailserver:master May 22, 2025
3 checks passed
@polarathene polarathene changed the title docs: PROXY protocol advice for Traefik should reference correct entrypoints docs: PROXY protocol (Traefik) - Fix config typo May 22, 2025
@casperklein
Copy link
Copy Markdown
Member

Copilot was suggested as reviewer, so I gave it a try 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants