mirror of
https://github.com/axllent/mailpit.git
synced 2026-04-26 00:35:51 +03:00
[GH-ISSUE #446] -smtp-require-tls ignored when specifying authentication and password file #286
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#286
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 @AAAlvesJr on GitHub (Feb 18, 2025).
Original GitHub issue: https://github.com/axllent/mailpit/issues/446
I am not sure if it is a bug, or a feature, but as I have understood the documentation, it should be possible to activate SSL/TLS and also specify a password file to enable logins on smtp.
I am getting the situation below :
Mailpit runs with
(STARTTLS required).However, when I remove
--smtp-auth-file passwdfile, I get the situation below:I am running the latest release
v1.22.3on linux 64bits.Am I doing something wrong? How to get SSL/TLS and authentication ?
@axllent commented on GitHub (Feb 18, 2025):
You may have discovered a bug, but I'll need to get back to you on this in the next day or two as I have been very busy with other commitments, sorry.
@axllent commented on GitHub (Feb 19, 2025):
I actually believe this is just an error in the Mailpit server output, and not and error in the implementation itself. From what I can tell
--smtp-require-tlsenforces TLS correctly.Can you please confirm for me whether you're actually having issues with TLS & authentication, ignoring what Mailpit it telling you while running?
@AAAlvesJr commented on GitHub (Feb 19, 2025):
Hello, thanks for the prompt reaction.
Indeed, good point this one you raised. I have no issues in my application, which REQUIRES TLS to send emails.
Maybe it is just what you said, a minor issue with the logging.
Is there a more direct and specific way to assert this?
Please, let me know.
Cheers
@axllent commented on GitHub (Feb 20, 2025):
Most email applications actually automatically go straight to TLS when set to STARTTLS. They are basically the exact same thing, except that STARTTLS is designed to respond to unencrypted SMTP commands until the authentication part (from which point everything must be over TLS). When a server is running with TLS it will just close the connection if your try send anything unencrypted.
Connecting with telnet to STARTTLS:
Connecting with telnet to TLS:
There's definitely the correct responses from Mailpit, and I found the issue that caused it to return the wrong information in the log.
I have pushed a fix for this into the
developbranch, however given that it's not actually a functionality bug but rather a cosmetic error, I won't release a new version until I have more to add. This will definitely be included in the next release, and in the meantime please just ignore the output. Thanks for your input.