Replies: 3 comments
-
What's the reason you've changed the |
Beta Was this translation helpful? Give feedback.
-
Thank you for the response , it was indeed my secret wrong , i missed the first char. I also put the default configuration for the scope like you said. |
Beta Was this translation helpful? Give feedback.
-
Great – thanks for confirming; glad this was resolved. |
Beta Was this translation helpful? Give feedback.
-
Hello , i would like to know if you can help me with the following problem , probably i'm missing something :
I'm trying to use a script that use swaks (https://www.jetmore.org/john/code/swaks/) , and connect to the proxy using this configuration:
[SMTP-1587]
server_address = smtp-mail.outlook.com
server_port = 587
server_starttls = True
local_address = 0.0.0.0
[[email protected]]
permission_url = https://login.microsoftonline.com/mytenant/oauth2/v2.0/authorize
token_url = https://login.microsoftonline.com/mytenant/oauth2/v2.0/token
oauth2_scope = https://graph.microsoft.com/.default
redirect_uri = http://localhost
client_id = myclientID
client_secret = myclientsecret
[emailproxy]
delete_account_token_on_password_error = False
encrypt_client_secret_on_first_use = False
use_login_password_as_client_credentials_secret = False
allow_catch_all_accounts = False
this is my script:
swaks --to "[email protected] " \ --from "[email protected] " \ --server "192.168.37.251" \ --port "1587" \ --header "Subject: Test Email" \ --body "This is a test email sent through email-oauth2-proxy." \ --auth-user [email protected] \ --auth-password "mypass"
Checking from logs i can see this:
And then , i browser with that link obtaining , this:
but i have this in email-oauth2-proxy server logs:
And this , from my script console:
It seems like secrets value is invalid , and authentication fails , but i checked multiple times and using a curl that bypasses proxy ( with same secret value and client id ) it does work , and returns token auth. So i'm sure that cliend id and secretid are indeed correct.
Last info , i'm starting the tool with:
python emailproxy.py --local-server-auth --debug --no-gui
Please , can you help me understand the problem ? Maybe i'm not using the tool correctly or i do have a problem with my configuration.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions