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

Example call using OAuth2 on Windows and Linux/Mac? #184

Open
Kukulkano opened this issue Feb 6, 2025 · 1 comment
Open

Example call using OAuth2 on Windows and Linux/Mac? #184

Kukulkano opened this issue Feb 6, 2025 · 1 comment

Comments

@Kukulkano
Copy link

Hi. I really like msmtp. Thanks for that!

I currently plan to integrate msmtp into a end user application. It is needed for sending emails based on normal TLS accounts but also on OAuth2 accounts like peoples Microsoft or gmail accounts. The final product should allow people to enter their email address and smtp server (I can store all that information in my app) and then run the OAuth2 procedure for the first sending (or if needed again).

I already have my application registration and can use Client ID and and Client Secret. Now I did some investigation and searched the internet, but there is no complete example about configuring and calling msmtp for OAuth usage. I see the use of Linux tools (secure-tool?) and sometimes some incomplete information or asking people to do some strange process to get tokens. But I still do not get who is opening the web browser for initial authentication, opens a port for getting the token and how to use that with my application. Is msmtp doing that? The official documentation is extemely short on that, mentions OAuth2 just two times.

I can't ask end users to login to their google/MS accounts and create any tokens and stuff. I know that there is a web browser related way of doing this by also opening a local port for confirmation and token receiving. Users do not have to do manual tokens for using Thunderbird, right? So there is a way.

Can you integrate some complete example about OAuth2 usage with msmtp to the documentation? Maybe for Windows and Linux/Mac to be complete? I believe that, after Google and MS now are forcing people to use OAuth2, the demand for such is increasing.

And if a developer needs to implement something like opening a web browser with a dedicated URL and run a listening port on the device to get some information, maybe you can line out this a bit? That would be soooo helpful!

Thanks for reading :)

@yayaasd
Copy link

yayaasd commented Feb 16, 2025

following - similar problem here, but was not able to solve now..
crazy-max/docker-msmtpd#87

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

No branches or pull requests

2 participants