Service adapted from https://github.com/emersion/hydroxide for receiving push notifications for Protonmail via ntfy.sh
Go to file
Simon Ser b6073991b8
Update dependencies
2020-02-29 18:10:57 +01:00
auth Fix 2FA support 2019-12-08 12:14:41 +01:00
carddav carddav: update to go-webdav v0.2.0 2020-02-04 21:28:25 +01:00
cmd/hydroxide cmd/hydroxide: move usage string to global constant 2020-02-29 12:36:48 +01:00
config Store everything in XDG_CONFIG_HOME, add `status` command 2019-03-22 22:35:10 +02:00
events events: don't enter a busy loop on error 2019-06-22 12:56:43 +03:00
imap imap: add backend mutex 2020-02-29 12:13:32 +01:00
imports imports: check protonmail.ImportResult.Err 2019-11-14 09:38:30 +01:00
protonmail protonmail: add Client.ListLabels 2020-01-29 14:39:30 +01:00
smtp Update dependencies 2019-12-08 12:25:26 +01:00
.build.yml ci: print build status 2018-10-28 16:58:28 +01:00
.gitignore Add authentication, fixes #2 2017-09-09 15:37:03 +02:00
LICENSE Initial commit 2017-08-21 17:33:41 +02:00
README.md [README] `hydroxide serve`, not `hydroxide server` 2019-07-18 19:22:42 +03:00
go.mod Update dependencies 2020-02-29 18:10:57 +01:00
go.sum Update dependencies 2020-02-29 18:10:57 +01:00

README.md

hydroxide

A third-party, open-source ProtonMail bridge. For power users only, designed to run on a server.

hydroxide supports CardDAV, IMAP and SMTP.

Rationale:

  • No GUI, only a CLI (so it runs in headless environments)
  • Standard-compliant (we don't care about Microsoft Outlook)
  • Fully open-source

Feel free to join the IRC channel: ##emersion on irc.freenode.net.

How does it work?

hydroxide is a server that translates standard protocols (SMTP, IMAP, CardDAV) into ProtonMail API requests. It allows you to use your preferred e-mail clients and git-send-email with ProtonMail.

+-----------------+             +-------------+  ProtonMail  +--------------+
|                 | IMAP, SMTP  |             |     API      |              |
|  E-mail client  <------------->  hydroxide  <-------------->  ProtonMail  |
|                 |             |             |              |              |
+-----------------+             +-------------+              +--------------+

Setup

Go

hydroxide is implemented in Go. Head to Go website for setup information.

Installing

Start by installing hydroxide:

GO111MODULE=on go get github.com/emersion/hydroxide/cmd/hydroxide

Then you'll need to login to ProtonMail via hydroxide, so that hydroxide can retrieve e-mails from ProtonMail. You can do so with this command:

hydroxide auth <username>

Once you're logged in, a "bridge password" will be printed. Don't close your terminal yet, as this password is not stored anywhere by hydroxide and will be needed when configuring your e-mail client.

Your ProtonMail credentials are stored on disk encrypted with this bridge password (a 32-byte random password generated when logging in).

Usage

hydroxide can be used in multiple modes.

Don't start hydroxide multiple times, instead you can use hydroxide serve. This requires ports 1025 (smtp), 1143 (imap), and 8080 (carddav).

SMTP

To run hydroxide as an SMTP server:

hydroxide smtp

Once the bridge is started, you can configure your e-mail client with the following settings:

  • Hostname: localhost
  • Port: 1025
  • Security: none
  • Username: your ProtonMail username
  • Password: the bridge password (not your ProtonMail password)

CardDAV

You must setup an HTTPS reverse proxy to forward requests to hydroxide.

hydroxide carddav

Tested on GNOME (Evolution) and Android (DAVDroid).

IMAP

For now, it only supports unencrypted local connections.

hydroxide imap

License

MIT