Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't login to proton account on thunderbird #253

Open
ghost opened this issue May 11, 2023 · 26 comments
Open

Can't login to proton account on thunderbird #253

ghost opened this issue May 11, 2023 · 26 comments

Comments

@ghost
Copy link

ghost commented May 11, 2023

I first get The following settings were found by probing the given server, but when I enter the bridge password I get Unable to log in at server. Probably wrong configuration, username or password.

I don't think this is a thunderbird issue unless I've configured something within thunderbird wrong specifically.

@Staubgeborener
Copy link

I have the same issue. A lot of people say, you have to get rid of the @protonmail.com appendix for the username for icmp/smtp. So for example, if your email address is [email protected] you should use mymail as the username for icmp/smtp.
Also, you have to choose "no security" instead of TLS/whatever.

I tried this, still no luck, but maybe it's working for you?

@ghost
Copy link
Author

ghost commented May 11, 2023

I have the same issue. A lot of people say, you have to get rid of the @protonmail.com appendix for the username for icmp/smtp. So for example, if your email address is [email protected] you should use mymail as the username for icmp/smtp. Also, you have to choose "no security" instead of TLS/whatever.

I tried this, still no luck, but maybe it's working for you?

So is it possible to sign into proton on a self-hosted mail reader using hydroxide, or is this more closely related to thunderbird?
Is hydroxide even functioning properly for emersion? If this issue really is because of thunderbird, I could consider just using another email client. Otherwise, I don't think it can be said that hydroxide is remotely functional.

@recanman
Copy link

Thunderbird works for me, do you have connection logs from the server?
I changed the SMTP and IMAP servers to listen on 0.0.0.0 instead of 127.0.0.1 because I have it running in a container, but I connect to the IP address with the standard ports (it will tell you when you run hydroxide serve), with security set to automatic. I use the full [email protected] and the bridge password.

Make sure your advanced configuration is actually saving and you're not connecting to protonmail.com.

@Staubgeborener
Copy link

Staubgeborener commented May 12, 2023

@recanman

Make sure your advanced configuration is actually saving and you're not connecting to protonmail.com.

Maybe you can explain this more with screenshots?

In my case, the most annoying stuff: I run hydroxide on my home server (native, not inside a container), i can reach this home server and all it's service by it's ip address. Let's say the ip address is 192.168.178.34.
Now of course i can't use 127.0.0.1 or 0.0.0.0 on my working station, but i have to use 192.168.178.34 instead.

Port 8080 is truly used right now, but right now i don't want to use CardDAV anyway.

1
2
3
4

@ghost
Copy link
Author

ghost commented May 12, 2023

thunderbirderror
I get this error when trying to connect to my hydroxide server that's running on $ ./hydroxide/main serve 2023/05/12 02:16:55 IMAP server listening on 127.0.0.1:1143 2023/05/12 02:16:55 SMTP server listening on 127.0.0.1:1025 2023/05/12 02:16:55 CardDAV server listening on 127.0.0.1:8080
I don't see logs for hydroxide in journalctl - if they're existent somewhere else I suppose that could be helpful. arch btw
It hangs on 'checking password' for a few minutes before throwing 'Unable to log in at server. Probably wrong configuration, username or password'. This occurs every time I run with main serve running. If 'main serve` isn't running, I get 'Thunderbird failed to find settings for your email account'.

@recanman
Copy link

recanman commented May 12, 2023

You don't click "Re-test", you click "Advanced config". It's pretty weird.

Make sure that you have the settings on the right for the second screenshot. There is no encryption.

@recanman
Copy link

If I interpreted what you said correctly, you have the hydroxide server on a different IP address? If so, you'll have to modify and recompile in order to change the listening IP addresses until it says 0.0.0.0.

@recanman
Copy link

thunderbirderror

I get this error when trying to connect to my hydroxide server that's running on `$ ./hydroxide/main serve

2023/05/12 02:16:55 IMAP server listening on 127.0.0.1:1143

2023/05/12 02:16:55 SMTP server listening on 127.0.0.1:1025

2023/05/12 02:16:55 CardDAV server listening on 127.0.0.1:8080`

I don't see logs for hydroxide in journalctl - if they're existent somewhere else I suppose that could be helpful. arch btw

It hangs on 'checking password' for a few minutes before throwing 'Unable to log in at server. Probably wrong configuration, username or password'. This occurs every time I run with main serve running. If 'main serve` isn't running, I get 'Thunderbird failed to find settings for your email account'.

Make sure to click Advanced config, it is unusual but worked for me.

@Staubgeborener
Copy link

Staubgeborener commented May 12, 2023

@recanman

Make sure that you have the settings on the right for the second screenshot. There is no encryption.

I mean, yeah sure, i'm in the advanced settings. But what next? I already changed connection security to None instead STARTTLS.

If I interpreted what you said correctly, you have the hydroxide server on a different IP address?

Yes, hydroxide is running on a different ip address. There are two computers: My home server with 192.168.178.24 (which is running hydroxide) and my working station, which is running thunderbird.

If so, you'll have to modify and recompile in order to change the listening IP addresses until it says 0.0.0.0.

Is there a command to do so or which line in which files has to be changed?

@recanman
Copy link

Line 222 and line 226, change "127.0.0.1" to "0.0.0.0"

Make sure to recompile

@ghost
Copy link
Author

ghost commented May 12, 2023

If I interpreted what you said correctly, you have the hydroxide server on a different IP address? If so, you'll have to modify and recompile in order to change the listening IP addresses until it says 0.0.0.0.

it's running on the same ip address - that's why I'm able to query it for password

@ghost
Copy link
Author

ghost commented May 12, 2023

and what are you supposed to do in 'advanced config' once you click it?

@recanman
Copy link

It should save the configuration, as opposed to clicking "re-test" which doesn't use the advanced configuration.

@ghost
Copy link
Author

ghost commented May 12, 2023

It should save the configuration, as opposed to clicking "re-test" which doesn't use the advanced configuration.

if I do that and try to send an email, I get Sending of the message failed. An error occurred while sending mail: Unable to establish a secure link with Outgoing server (SMTP) 127.0.0.1 using STARTTLS since it doesn't advertise that feature. Switch off STARTTLS for that server or contact your service provider

@Staubgeborener
Copy link

Staubgeborener commented May 12, 2023

Line 222 and line 226, change "127.0.0.1" to "0.0.0.0"

Make sure to recompile

no luck, after changing those two lines, compiling everything with go build ./cmd/hydroxide/main.go and re-creating a bridge password it's still showing me 127.0.0.1 instead 0.0.0.0. Changing this manual by my own in thunderbird leads to an error.

Edit: oh, but ./hydroxide serve shows the correct one, it's only wrong in thunderbird.

2023/05/12 09:03:47 CardDAV server listening on 127.0.0.1:8080
2023/05/12 09:03:47 IMAP server listening on 0.0.0.0:1143
2023/05/12 09:03:47 SMTP server listening on 0.0.0.0:1025
2023/05/12 09:03:47 listen tcp 127.0.0.1:8080: bind: address already in use

But my problem is still the same, doesn't matter if i try 127.0.0.1, 0.0.0.0 or 192.168.178.34, i'll get the same error message.

@User10987654321 This is what i was talking about before. You have to change connection security to none instead STARTTLS.
5

Edit 2: Ok, found the issue. I run hydroxide right now on my working station with powershell. Running .\main.exe serve (main.exe = hydroxide) is leaving the hydroxide server open and listening. On the other hand, running these commands on my home server like ./hydroxide serve, i only get a small output of the open ports and that the server is listening but immediately after that the server seems to close and i can enter other stuff in my terminal. In powershell, i can see the server logs the whole time. But even after running hydroxide like ./hydroxide serve & to leave the server open, i still can't connect to thunderbird. But on the other hand, running hydroxide on my working station works flawlessly and i can synchronize my emails.

@ghost
Copy link
Author

ghost commented May 12, 2023

Okay - when I set the outgoing server connection security to 'None' I get 'Login to server 127.0.0.1 with username [email protected] failed.' and
imap/server: 2023/05/12 02:55:34 cannot send response: write tcp 127.0.0.1:1143->127.0.0.1:58518: write: connection reset by peer imap/server: 2023/05/12 02:55:34 cannot send response: write tcp 127.0.0.1:1143->127.0.0.1:58518: write: connection reset by peer imap/server: 2023/05/12 02:55:34 cannot send response: write tcp 127.0.0.1:1143->127.0.0.1:58518: write: connection reset by peer imap/server: 2023/05/12 02:55:34 cannot send response: write tcp 127.0.0.1:1143->127.0.0.1:58518: write: connection reset by peer imap/server: 2023/05/12 02:55:34 cannot send response: write tcp 127.0.0.1:1143->127.0.0.1:58518: write: connection reset by peer imap/server: 2023/05/12 02:55:34 cannot send response: write tcp 127.0.0.1:1143->127.0.0.1:58518: write: connection reset by peer imap/server: 2023/05/12 02:55:34 cannot send response: write tcp 127.0.0.1:1143->127.0.0.1:58518: write: connection reset by peer imap/server: 2023/05/12 02:55:34 cannot send response: write tcp 127.0.0.1:1143->127.0.0.1:58518: write: connection reset by peer imap/server: 2023/05/12 02:55:34 cannot send response: write tcp 127.0.0.1:1143->127.0.0.1:58518: write: connection reset by peer imap/server: 2023/05/12 02:55:34 cannot send response: write tcp 127.0.0.1:1143->127.0.0.1:58518: write: connection reset by peer imap/server: 2023/05/12 02:55:34 cannot send response: write tcp 127.0.0.1:1143->127.0.0.1:58518: write: connection reset by peer imap/server: 2023/05/12 02:55:34 cannot send response: write tcp 127.0.0.1:1143->127.0.0.1:58518: write: connection reset by peer imap/server: 2023/05/12 02:55:34 cannot send response: write tcp 127.0.0.1:1143->127.0.0.1:58518: write: connection reset by peer
in the terminal messages of ./main serve

This is what happens when I try to send an email.

@ghost
Copy link
Author

ghost commented May 12, 2023

Also, when I try to 'get messages' from my inbox, I get the error: Non-overridable TLS error occurred. Handshake error or probably the TLS version or certificate used by server 127.0.0.1 is incompatible

@recanman
Copy link

Make sure to set ingoing server to None, both SMTP and IMAP should not have any encryption applied.

@ghost
Copy link
Author

ghost commented May 13, 2023

Make sure to set ingoing server to None, both SMTP and IMAP should not have any encryption applied.

If I set both to none and try to send a message, I get Login to server 127.0.0.1 with username [email protected] failed. and once I press cancel on that message, I get the message Sending of message failed. Unable to authenticate Outgoing server (SMTP) 127.0.0.1. Please check the password and verify the 'Authentication method' in 'Account Settings | Outgoing server (SMTP)'.

@acheong08
Copy link

I got it working today after some trial and error.

image

Make sure @protonmail.com isn't part of the username in manual configuration.

@acheong08
Copy link

image

Make sure this is set so you don't get annoying errors when Sent folder does not exist

@HyperCriSiS
Copy link

I have the same issue and tried everything. I just always get the message that no preferences for my e-Mail account.

  • The bridge runs on a Raspberry.
  • UFW ports are open.
  • In the advanced settings I set "no connection security" and "auto detect authentication method."
  • Host is the Raspberry IP.
  • I run the hydroxide IMAP server with:
  • ./hydroxide -imap-host 0.0.0.0 imap - so it listens for connections from all IPs.
  • I tried with just username and also with [email protected]

hydroxide status shows 1 logged in user.

Any ideas what could be wrong?

Thanks
Hyper

@HyperCriSiS
Copy link

HyperCriSiS commented Aug 22, 2023

ok, WTF, it does work when creating the new account instead of test connection. Really strange TB bug.
BTW. The login e-mail address is case sensitive!

@ma-04
Copy link

ma-04 commented Oct 11, 2023

Had similar issue and as noted by @HyperCriSiS , hydroxide is CASE SENSITIVE!!
@emersion Can you add this to the doc?

@Jirido
Copy link

Jirido commented Nov 17, 2023

I have same problem but only with addresses with a dot "." in the user name like [email protected]
It is probably quite easy to fix.

@jb1277976
Copy link

Line 222 and line 226, change "127.0.0.1" to "0.0.0.0"
Make sure to recompile

no luck, after changing those two lines, compiling everything with go build ./cmd/hydroxide/main.go and re-creating a bridge password it's still showing me 127.0.0.1 instead 0.0.0.0. Changing this manual by my own in thunderbird leads to an error.

Edit: oh, but ./hydroxide serve shows the correct one, it's only wrong in thunderbird.

2023/05/12 09:03:47 CardDAV server listening on 127.0.0.1:8080
2023/05/12 09:03:47 IMAP server listening on 0.0.0.0:1143
2023/05/12 09:03:47 SMTP server listening on 0.0.0.0:1025
2023/05/12 09:03:47 listen tcp 127.0.0.1:8080: bind: address already in use

But my problem is still the same, doesn't matter if i try 127.0.0.1, 0.0.0.0 or 192.168.178.34, i'll get the same error message.

@User10987654321 This is what i was talking about before. You have to change connection security to none instead STARTTLS. 5

Edit 2: Ok, found the issue. I run hydroxide right now on my working station with powershell. Running .\main.exe serve (main.exe = hydroxide) is leaving the hydroxide server open and listening. On the other hand, running these commands on my home server like ./hydroxide serve, i only get a small output of the open ports and that the server is listening but immediately after that the server seems to close and i can enter other stuff in my terminal. In powershell, i can see the server logs the whole time. But even after running hydroxide like ./hydroxide serve & to leave the server open, i still can't connect to thunderbird. But on the other hand, running hydroxide on my working station works flawlessly and i can synchronize my emails.

This resolved my issue today

Launched Thunderbird and for the life of me i couldn't get it to work.. I then took off starttls to none and boom i'm in

Thanks

Joe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants