I have some problems to configure the E-Mail Server to restore my password etc.
I have configured msmtp and can send emails with them.
In nextcloud i have configured the mail server to send mails with localhost. But I don’t know whats wrong with my configuration. I get everytime this error message:
Beim Senden der E-Mail ist ein Problem aufgetreten. Bitte überprüfen Sie Ihre Einstellungen. (Fehler: Connection could not be established with host localhost [Verbindungsaufbau abgelehnt #111] Log data: ++ Starting Swift_SmtpTransport !! Connection could not be established with host localhost [Verbindungsaufbau abgelehnt #111] (code: 0))
Is msmtp listening on port 25 or is it only able to be accessed via a unix pipe connection. Is php.ini sendmail_path set to the correct sendmail compatible command for msmtp?
Do you have other PHP software on the system from which you can try to send e-mail?
I think you should first check if msmtp is correctly listening on localhost. You can check this by running “telnet localhost 25” on your server. Next I would run msmtp in debug mode and check the log file for any messages which might unveil the root cause of the connection problem
Once you’ve double-checked that the msmtp service is running, you should test access to your server again by trying it with the loop-back and also the official ip address of your server.