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

Kubernetes Nextcloud: IMAP server is not reachable #75

Open
johnsmitth opened this issue Jan 28, 2023 · 2 comments
Open

Kubernetes Nextcloud: IMAP server is not reachable #75

johnsmitth opened this issue Jan 28, 2023 · 2 comments

Comments

@johnsmitth
Copy link

I'm kindof at my wits end here.

The container is running and linked to my Protonmail account, but nomatter what settings I try NextCloud keeps telling me "IMAP server is not reachable" when I try to add the IMAP and SMPT settings.

I've tried following the suggested issue #6 which just exposes port 25 (and presumably 143 for IMAP). I've tried exposing ports 1025 and 1143 (which protonmail-bridge says the services are running on). I've tried mapping ports 1025 and 1143 to ports 25 and 143 respectively. I've tried NodePort, and i've tried ClusterIP. I've tried security:none and security:starttls. For the IMAP host I've tried using the Kubernetes service name, the full Kubernbetes internal DNS address, and even the internal Kubernetes IP address of the service directly.

NextCloud had no problems connecting to the pod running MariaDB so clearly it can see other pods in the network, but no matter what I try, I'm coming up dougnuts with this Protonmail-Bridge container.... As far as NextCloud is concerned it doesn't exist.

Anyone else had similar issues and managed to get it working?

@twaananen
Copy link

twaananen commented Feb 20, 2023

This is propably because protonmail-bridge only listens to connections from localhost / 127.0.0.1
ProtonMail/proton-bridge#270
You can 'fix' it by placing this line in build.sh after checkout and building the image yourself.
sed -i 's/127.0.0.1/0.0.0.0/g' internal/constants/constants.go
Edit: this is a more complete comment for nextcloud.

@zastrixarundell
Copy link

zastrixarundell commented Nov 28, 2023

I haven't fixed my issue fully, but at least I'm communicating with protonmail-bridge. This comment helped me, nextcloud refused to communicate with network-bridge. Now I'm getting 2023/11/28 22:50:27 socat[41] E connect(5, AF=2 127.0.0.1:1025, 16): Connection refused though.

The issue is 100% now what @twaananen did mention, where it only allow for 127.0.0.1. They disabled non-localhost on purpose.

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

3 participants