Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow bypass plain auth tls check #342

Closed
lublak opened this issue Oct 22, 2024 · 3 comments · Fixed by #344
Closed

Allow bypass plain auth tls check #342

lublak opened this issue Oct 22, 2024 · 3 comments · Fixed by #344
Labels
confirmed enhancement New feature or request

Comments

@lublak
Copy link

lublak commented Oct 22, 2024

Is your feature request related to a problem? Please describe.

Currently with use a special smtp tunnel without encryption and plain text (we have old hardware).
With the tunnel we secure the connection.
Currently there is not option to bypass it in your library:

https://github.com/wneessen/go-mail/blob/main/smtp/auth_plain.go#L41

Describe the solution you'd like

An option to set plain text without require tls and localhost.

Describe alternatives you've considered

Currenlty i copied the code and use SetSMTPAuthCustom

Additional context

No response

@lublak lublak added the enhancement New feature or request label Oct 22, 2024
@wneessen
Copy link
Owner

Thanks for the issue. Interesting use-case. Definetly something to consider.

@wneessen
Copy link
Owner

PR #344 implements two new SMTPAuthType types: SMTPAuthPlainNoEnc and SMTPAuthLoginNoEnc. These allow for PLAIN and LOGIN auth via unencrypted channels.

@lublak
Copy link
Author

lublak commented Oct 23, 2024

@wneessen awesome :) thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
confirmed enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants