mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 08:45:54 +03:00
[GH-ISSUE #5] key/pem handling for smtp #4
Labels
No labels
awaiting feedback
bug
docker
documentation
enhancement
github_actions
invalid
pull-request
question
stale
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/mailpit#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @paulbalomiri on GitHub (Aug 6, 2022).
Original GitHub issue: https://github.com/axllent/mailpit/issues/5
trying here to configure
smtpsandSTARTTLS(optional) for the docker image.I can also rebuild the docker image [EDIT id nessesary ] and already have let'sencrypt the key & cert.
The wiki's smtp page mentions the config options
--smtp-ssl-certand--smtp-ssl-keyI can not set them, though & don't know if it is possible from env variables too (trying to avoid the
executedocker config service option if possible.Edit 2: The codebase's config.go also does not mention these options...
Thumbs up for the project 👍
@paulbalomiri commented on GitHub (Aug 6, 2022):
ah, now saw your commit from 2hrs ago:
github.com/axllent/mailpit@56fdaa1224Does this mean the
MP_SSL*are taken from the web UI?github.com/axllent/mailpit@ba8c4cd2aa/cmd/root.go (L96-L103)My usecase is served best if i can reverse proxy the UI with traefik, but expose the smtp endpoint as is on a dedicated port (no virtual hosts for smtp)
@axllent commented on GitHub (Aug 6, 2022):
@paulbalomiri It seems there is some confusion, probably caused by me trying to edit multiple documents at the same time.
So to answer your question(s),
MP_SSL_KEY&MP_SSL_CERThave been replaced withMP_UI_SSL_CERTandMP_UI_SSL_KEY- but these are for the web UI, not SMTP (and in saying that I just realized I have a typo in my code so I have just released 0.1.1). What you are looking for has now been documented in the wiki -MP_SMTP_SSL_CERT&MP_SMTP_SSL_KEY.Hopefully this answers your questions, and thanks for the heads-up.
Edit: traefik handling HTTPS (provided you have something specific in your config to handle the websocket path
api/catchall/events- or maybe traefik handles that automatically, I don't know) and direct forwarding to STARTTLS should work as expected - provided you have valid certs (or accept "insecure" (not validated) certs.Edit 2: I haven't fully tested all those options via docker (yet), though they should work as expected provided I didn't make any more dumb typos :)
@paulbalomiri commented on GitHub (Aug 6, 2022):
#6 and #7 both solve a minor issue regarding this.
Thanks for this great Repo @axllent !