Skip to content

imap server proxying access to another imap server with oauth2 authentication

License

Notifications You must be signed in to change notification settings

legionus/oauth2imap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

oauth2imap

The utility provides the ability to access an IMAP4 account on a server with XOAUTH2 authentication.

There are several use-cases:

  1. A server is created that proxies requests to the upstream imap4 server. The downstream server can be protected by another authentication method.

  2. Operation in tunnel mode. Commands are received from stdin and sent to the upstream imap4 server and the response is broadcast to stdout. See for more informartion.

Configuration

The utility uses a config file to store authentication information.

[upstream]
provider    = "microsoft"
tenant      = "<<< tenant id or naae >>>"
client-id   = "<<< your client id >>>"
username    = "<<< your username or email here >>>"
tokens-file = "/home/user/.tokens"

[downstream]
server = "127.0.0.1"
port = 10143
username = "example"
password = "secret"

For tunnel mode, the downstream section is not required.

Similar projects

  • email-oauth2-proxy -- An IMAP/POP/SMTP proxy that transparently adds OAuth 2.0 authentication for email clients that don't support this method.

  • mutt_oauth2.py -- The script obtains and prints a valid OAuth2 access token.

License

oauth2imap is licensed under the GNU General Public License (GPL), version 3.

About

imap server proxying access to another imap server with oauth2 authentication

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published