Problem while setting Mail Client to Protonmail via Hydroxide bridge

Greetings folks!
I’m having some troubles while pairing the Mail client to my paid ProtonMail Account via Hydroxide.
I’ve managed to compile the thing on my PC,

cd hydroxide/cmd/hydroxide
GOOS=linux GOARCH=arm go build

transferred it to my XA2, and then start the newly created systemd service.
So far so good - I even managed to get myself authenticated via the CLI.
Still after setting up manually the Mail client with the settings needed (server addr: localhost and then ports 1025 (smtp) and 1143 (imap)), I’m getting connection timeout.

Any suggestions on how to debug?

edit: I’m using the password provided by the hydroxide bridge.

You can start with

systemctl status xydroxideservice
and
ss -l4p
to check if proper hydroxide services are running at localhost ports.

Service is already running:

hydroxide.service - Hydroxide ProtonMail bridge
Loaded: loaded (/etc/systemd/system/hydroxide.ser>
Active: active (running) since Thu 2024-07-25 05:>
Main PID: 14557 (hydroxide)
Memory: 7.5M
CGroup: /system.slice/hydroxide.service
└─14557 /usr/bin/hydroxide serve

Still I’ve used the K9-Android Email client just for debug and I get the following error:

Running the ss -l4p, I get the following:

Netid State  Recv-Q Send-Q   Local Address:Port
Peer Address:Port         Process
udp   UNCONN 0      0              0.0.0.0:45305
0.0.0.0:*
udp   UNCONN 0      0            127.0.0.1:domain
0.0.0.0:*
tcp   LISTEN 0      128          127.0.0.1:webcache
0.0.0.0:*
tcp   LISTEN 0      10        127.0.0.1%lo:domain
0.0.0.0:*
tcp   LISTEN 0      128          127.0.0.1:imyx
0.0.0.0:*
tcp   LISTEN 0      128          127.0.0.1:blackjack
0.0.0.0:*

Ok, I’ve redone the conf and now I do have ProtonMail access via K9 and Hydroxide.

ss -l4p
Netid State  Recv-Q Send-Q   Local Address:Port
Peer Address:Port
Process
udp   UNCONN 0      0            127.0.0.1:domain
0.0.0.0:*

udp   UNCONN 0      0              0.0.0.0:39473
0.0.0.0:*

tcp   LISTEN 0      128          127.0.0.1:webcache
0.0.0.0:*
users:(("hydroxide",pid=17684,fd=8))
tcp   LISTEN 0      10        127.0.0.1%lo:domain
0.0.0.0:*

tcp   LISTEN 0      128          127.0.0.1:imyx
0.0.0.0:*
[defaultuser@XperiaXA2 ~]$

while my service seems to work fine now:

systemctl --user status hy
droxide
● hydroxide.service - Hydroxide ProtonMail bridge
Loaded: loaded (/home/defaultuser/.config/systemd>
Active: active (running) since Thu 2024-07-25 08:>
Main PID: 17684 (hydroxide)
CGroup: /user.slice/user-100000.slice/user@100000>
└─17684 /home/defaultuser/bin/hydroxide s>
lines 1-6/6 (END)

Still - with the Sailfish mail Client I do get Connection Timeout.

1 Like

Ok, I’ve saved the config and uninstalled the K-9, created new credentials and made use of the hydroxide -debug option, where I do find the following errors:

Once I do have more time I’ll upload a screen after successful setup via the K-9.
btw.
What do you think - is this a Sailfish OS related issue?
Should I report a bug?

The error message is quite clear and correct. There is a linebreak in the ‘password’ string which is not allowed in IMAP.
Also I don’t think the string should be quoted, but I’m not sure.

Which component creates that string? Is it a copy-paste error?

… Also the capabilities line only advertizes AUTH PLAIN and this is trying IMAP LOGIN which are different things.

See these on how to do IMAP auth correctly:

1 Like

I have just checked and hydroxide works without issue with Sailfish mail client. I suspect copy/paste issue as well, especially if you are using pc with Windows to transfers bridge password.
I advise to use txt file directly on the phone:
hydroxide auth $USER > credentials.txt

All right - it was indeed a paste error. :smiley:
I got it up and running now.

Thank U ppl!