I installed Nextcloud AIO on a VPS with Ubuntu server 22.04 and everything is working well except I need to set up the email server configuration to receive password reset and email notifications.
My current email providers don’t work with Nextcloud in this way, so I need an alternate solution. And no, I’m not willing to use gmail.
Is setting up an email server my only option? This seems like a major project just for notifications.
If so, what do you recommend that will work with the AIO installation?
Why is your email provider not working with the Nextcloud settings? Normally you can send an email with your email provider if you use the correct credentials for your username, password and e.g. TLS/SSL, StartTLS, …
Which email provider do you use?
Search “your emailprovider smtp settings”
I use Zoho Mail and I have smtp enabled with proper credentials but I get this error:
A problem occurred while sending the email. Please revise your settings. (Error: Connection could not be established with host smtppro.zoho.com :stream_socket_client(): php_network_getaddresses: getaddrinfo failed: Name does not resolve)
I have checked and doubled checked my credentials above.
Since an email server is the worst solution for me, what solutions do you recommend?
I am using these settings. I’ve checked and double-checked, and everything is correct for my credentials.
I do have two-factor authentication enabled for the email account so I did try an application specific password but this didn’t work either. Email password nor application specific password is working.
All right. I just tried to ping the given smtp domains. However it seems like they are not reachable. So either Zoho is blocking ping requests or their servers are down. Anyway, I would suggest contacting them about this issue.
I think the problem is 2FA for your email account.
I think I would set up a freemail account somewhere and use that. You can then forward emails from the freemail account to your normal account in case someone replies to the Nextcloud email.
Indeed it would be. Running an email server (properly) is becoming a lost art with the advent of Google Cloud and Office Online, and not something to be taken lightly.
Any proper email system should work with it.
If you do want to pursue this, there are options around. I recently migrated my company to Axigen. We also looked at iRedMail, MailCow, and numerous others. Sadly many of them are missing one key feature, like not supporting DKIM, not supporting 2FA, not supporting LDAP, or just having sketchy looking support (or none at all)…
This error is indicating DNS resolution failure. Is your server able to resolve the name?
I do not use 2FA for email. But if you have this high demand on email, you should maybe not activate the email notification at Nextcloud (for security reason). There are not so important messages. In the event of an error, your users can also call you.