From: Mihai L. <mt...@gm...> - 2022-10-19 10:24:21
|
On Tuesday, October 18, 2022 at 22:03:27 -0400, Jerry Geis wrote: > Would you mind sharing your configs - thanks Mutt configuration for Microsoft SMTP: set ssl_force_tls = no set smtp_url = smtp://<microsoft_email>@localhost:1587 set smtp_pass = <local_pwd> Mutt configuration for Gmail SMTP: set ssl_force_tls = no set smtp_url = smtp://<gmail_email>@localhost:2587 set smtp_pass = <local_pwd> Relevant parts of fetchmail configuration for Microsoft IMAP: poll localhost protocol IMAP port 1993 user '<microsoft_email>' there is '<local_user>' here password <local_pwd> sslproto '' Relevant parts of fetchmail configuration for Gmail IMAP: poll localhost protocol IMAP port 2993 user '<gmail_email>' there is '<local_user>' here password <local_pwd> sslproto '' Relevant parts of https://github.com/simonrob/email-oauth2-proxy configuration (probably I'm not using all): [IMAP-1993] local_address = localhost server_address = outlook.office365.com server_port = 993 [POP-1995] server_address = outlook.office365.com server_port = 995 [SMTP-1587] server_address = smtp.office365.com server_port = 587 starttls = True [IMAP-2993] server_address = imap.gmail.com server_port = 993 [POP-2995] server_address = pop.gmail.com server_port = 995 [SMTP-2465] server_address = smtp.gmail.com server_port = 465 [SMTP-2587] server_address = smtp.gmail.com server_port = 587 starttls = True I do not remember which values below I have set myself. email-oauth2-proxy also changes the same file in-place. <...> means I concealed the value. I think I got client_id from the Thunderbird sources (you can also use the ID of a project that you create and authorize yourself with Google and Microsoft, or already registered projects like Evolution, …). [<microsoft_email] permission_url = https://login.microsoftonline.com/common/oauth2/v2.0/authorize token_url = https://login.microsoftonline.com/common/oauth2/v2.0/token oauth2_scope = https://outlook.office365.com/IMAP.AccessAsUser.All https://outlook.office365.com/POP.AccessAsUser.All https://outlook.office365.com/SMTP.Send offline_access redirect_uri = http://localhost:8080 client_id = <...> client_secret = <...> [<gmail_email>] permission_url = https://accounts.google.com/o/oauth2/auth token_url = https://www.googleapis.com/oauth2/v3/token oauth2_scope = https://mail.google.com/ redirect_uri = http://localhost:8080 client_id = <...> client_secret = <...> HTH, Mihai |