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

Support SMTP Auth Plain for event publishing #1164

Merged
merged 1 commit into from
Sep 29, 2024

Conversation

bishtawi
Copy link
Contributor

@bishtawi bishtawi commented Aug 8, 2024

Hi, very cool project. I am currently looking into hosting the server and I need to authenticate the services that are publishing notifications emails. I read the docs and saw that you can include an access token as part of the email ([email protected]) but unfortunately that solution does not work for my usecase. Access tokens are sensitive information and with my set up, email addresses are not. Including access tokens as part of the email address is not a feasible solution.

SMTP has authentication protocols and a common one is AUTH PLAIN which your SMTP dependency (go-smtp) supports. We can hook up the SMTP AUTH PLAIN command to forward the credentials to the ntfy server and authenticate using basic auth.

I was honestly surprised at how easy it was to implement this, but I believe these are all the changes necessary. Let me know if there is anything else required.

@bishtawi bishtawi changed the title Support SMTP Auth Plain Support SMTP Auth Plain for event publishing Aug 8, 2024
@binwiederhier
Copy link
Owner

This looks straight forward. Thank you. I'll add some docs around it.

@binwiederhier binwiederhier merged commit eb700b4 into binwiederhier:main Sep 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants