(Ihave double checked the password and tried a different provider (gmx.de) and also changed the settings to other options, but allways got this errror message, when trying to send a test eMail:
A problem occurred while sending the email. Please revise your settings. (Error: Connection could not be established with host smtp.strato.de :stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name or service not known)
I can however reach that server from the same network with Thunderbird on my PC.
I also ran
ping smtp.strato.de
from my lxcs’ console and got an answer with 0 % package loss and a ~20ms ping so nextcloud should be able to reach the server.
I have some mailboxes at the same provider, and at least for me the connection details you posted are incorrect. The port should be 465, then it works.
I tried both ports before, as they are both given on the Strato website and just tried the 465 again, but get the same error, are your other configurations the same?
Well I see it that way: if you have problems connecting your strato-account it could be because of THAT.
I’M not sure that it would be valid for all strato-users, though.
naja, eine echte Lösung abseits davon einen eigenen Mailserver aufzusetzten (was ich bei Zeiten eh noch machen will, aber erstmal die Strato-Mail als Übergang nutzen wollte) wird da leider nicht geboten, soweit ich das sehen kann, aber trotzdem danke ich habe den Post tatsächlich noch nicht gefunden gehabt.
Scheint aber wohl ein generelles Problem mit Strato zu sein. (auch wenn mein nächster kommentar dagegen spricht)
Update: I recently checked my spam folder on the receiving e-Mail address and what do I find? Right a mail from my Nextcloud-Server informing me that my setup was successful, sadly I am not able to replicate that result anymore and do not know which settings were used to archive that as I played around with them quite a bit during that time.
I can not recall any setting that did not throw up the aforementioned error-message thought which means that I either missed an Instance where this message was not present, or Nextcloud was able to send an email nevertheless.
I know this is an old thread but someone should stumble upon it at some point. I kept getting the same errors on my installation of Nextcloud on a docker container. After a few days of digging and testing, I was able to get an email through after dropping the “SMTP” from the domain name and changing to Port 25, with STARTTLS (due to no SSL on nexthub container). Also had to drop the authentication. worked on my installation, might on yours depending on the server configuration.