I just installed NextCloud today to add groupware features to my email server.
I try to connect my user to email, and I get the following error:
IMAP server is not reachable
the suggested solutions on this forum say to add the following line to to config.php in the Nextcloud container
‘app.mail.verify-tls-peer’ => false,
So I went in via podman and it appears that there is no text editor installed (nano, vim, etc), and I cannot install it because apt, apt-get, yum, and pkg are all unrecognized commands.
I wanted to try downloading and installing nano from the web, but that needs wget, tar, and make, and make seems to be missing from the container as well.
I’m pretty stuck.
The NextCloud and Mail servers are on the same node. I can reach the mail server on my LAN as well as from the Internet, and it has been working for some time.
My installation process for installing NextCloud simply involved me clicking on the “Install” button in NethServer’s Software Center. If there was prerequisite stuff to do beforehand, this is possibly where I messed up.
Did you use the mail server hostname? In the following thread also installing packages in containers and setting ‘app.mail.verify-tls-peer’ => false via occ are explained:
I switched to the NextCloud user and ran the above command, with output indicating that it worked, but the problem persists. Next I used podman to restart the container in case that was needed to reload config.php, but it had no effect. I also cat’ed the file to make sure the new directive was added successfully, and it is in there.
For additional context since I saw it mentioned in the thread that you referenced, the mail server instance does indeed have a valid certificate, and for the mail server address, I added the FQDN of the mail server (reachable globally) The NextCloud instance, however, does not yet have a valid certificate (I was planning on doing LetsEncrypt after I got it up and running)
Again, I appreciate your guidance on this!
I have a feeling that I did something wrong during installation. I simply added it from the Software Center, but, I feel like there may be prerequisites that I don’t know about.
In addition to the steps recommended above (thank you again), I modified my host’s firewall rules so that the Trusted zone includes the following networks:
10.5.4.0/24 (default added by NethServer)
my LAN CIDR address (Added by me like a year ago, and I don’t remember why)
127.0.0.0/16 (The home CIDR address)
I looked at the hosts file and saw that there was an entry for the mail server. I tried changing that to a few different things, and what seemed to fix it was changing it to my LAN CIDR network address.