mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 08:45:54 +03:00
[GH-ISSUE #387] Docker compose TLS/SSL ceriftcate not readebale #250
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#250
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 @aiamk on GitHub (Nov 14, 2024).
Original GitHub issue: https://github.com/axllent/mailpit/issues/387
hello,
i tried all the ways and still didn't figure out how to solve this permission issue in docker, Kindly I need your help, i am not sure if i did a mistake or i missed something:
2024-11-14 21:18:39 time="2024/11/14 18:18:39" level=error msg="[smtp] TLS key not found or readable: =/certs/localhostKey.pem"Best Regards.
@axllent commented on GitHub (Nov 14, 2024):
Hi @aiamk. Do those certificates exist?
@aiamk commented on GitHub (Nov 14, 2024):
yes, i already checked them in mailpit container, i even made another certificates and i had the same issue
@axllent commented on GitHub (Nov 14, 2024):
Considering they are self-signed certificates, could you please attach them here so I can try & investigate? Thanks.
@aiamk commented on GitHub (Nov 14, 2024):
sure :
@axllent commented on GitHub (Nov 14, 2024):
Thanks. I'll need to get back to you in about 6 hours 👍
@aiamk commented on GitHub (Nov 14, 2024):
take your time bro,
i appreciate your help,
thank you
@axllent commented on GitHub (Nov 15, 2024):
OK, so your options are all over the place (you have several conflicting requirements), and more importantly, you have a typo in your YAML syntax which is the cause of your reported error -
MP_SMTP_TLS_KEY=: '/certs/localhostKey.pem'has a=:which is invalid and is probably causing an extra pace or something in the path. It should beMP_SMTP_TLS_KEY: '/certs/localhostKey.pem'which works fine here.So, (after fixing the typo) and depending on what you are trying to achieve here:
MP_SMTP_REQUIRE_STARTTLSorMP_SMTP_REQUIRE_TLS(or neither), but not bothMP_SMTP_AUTH_ACCEPT_ANYorMP_SMTP_AUTH(or neither), but not bothWithout knowing what environment you are trying to replicate I cannot give you more direction. Using a self-signed certificate is perfectly fine, provided you have control over the SMTP client to accept a self-signed certificate. Most of the time I don't use any TLS for SMTP as I don't need to test that and it makes my life much easier.
Based on what you pasted, I think your configuration should be:
This will provide you with a STARTTLS requirement (for a self-signed certificate) and SMTP authentication requiring either
webmaster:passwordorinfo:passwordas credentials.I hope this helps!
@aiamk commented on GitHub (Nov 15, 2024):
thank you very much bro for you efforts & help,
i am very sorry of this inconvenience typo mistake in docker compose, i couldn't see means i am getting old :|
actually i need tls & ssl to test my email library.
Best Regards,
@axllent commented on GitHub (Nov 15, 2024):
It's no problem, we all make mistakes!
@axllent commented on GitHub (Nov 16, 2024):
And thank you for the donation! ❤️