No Nethserver email via Nextcloud Mail app

The latest! NethServer Version: your_version
Nextcloud Module: your_module

I have the NethServer email server up and running. I can connect from various email clients as well as Roundcube webmail. All good.

In also have Nextcloud up and running. Except for the email which I can’t seem to connect to my NS email. I don’t see why not! Are there any tricks to get it to save my settings! There are no warnings to suggest any settings are wrong but clearly its not connecting.

Does anyone have a working Nextcloud to Nethserver email?

(I know, I don’t really need it, but…)


Would you please post your settings? If you wish to change some data, please do a nice image editing.
Also: consider to post images with english descriptions, if you can. It allow the community to a faster response. Unfortunately, some users use their own language for copy and paste console outputs or screenshots, which excludes from support who don’t knows german (or italian, or spanish or portuguese) or cannot copy-and-paste on a translator…

Thanks, here’s screenshot from the Nextcloud Mail settings. This shows the default settings a user sees before using NC Mail. I have checked the required ports are open. I can fill in my password and ‘save’ yet nothing happens. When I came back to the settings it shows empty password fields. NC Mail obviously ‘knows’ my server settings other than the password, but can’t connect for some reason.

I don’t currently have a NextCloud installation, so i cannot test.
But i suggest you some tests:

  1. Change the security from STARTTLS to SSL/TLS, check that ports change accordingly (993,465)
  2. Once changed ports, double check passwords
  3. Consider using as server name

Sorry, no, none of those suggestions make any difference. :frowning:

The mailserver that you’re using is on nethserver and is on the same installation?

Yes, Nethserver installed Nextcloud and its all on one server.

Please, in addition to the suggestion of @pike, try with in “IMAP user” and “SMTP user” fields, instead of david only

Thanks but sorry, no, that didn’t work. I also tried with the full server name, still no joy.

Does anyone here have a working NextCloud email? Just wondering!

Can you access to NextCloud log and read if there’s any error?
Also: did you look for errors into postfix log?

Thanks again. No I haven’t looked at these logs. I’ve looked at my Nethserver logs admin page and don’t see one for Postfix nor Nextcloud. I do have IMAP and mail logs. Should I look in either of those?

An update: Found the Nextcloud logs which says

[mail] Fatal: Updating account failed: Server denied authentication.
PUT /nextcloud/index.php/apps/mail/api/accounts/3
from *[public IP address]* by *[MAC address?]* at 2019-09-17T07:28:12+00:00

At least I was able to send a mail, however recieve is still not possible

It worked with following settings:

1 Like

NethServer release 7.7.1908 (final)
Nextcloud 17.0.3

This topic was never marked solved, so not sure if it worked for OP, but I am having errors logging in as well, but a different error.
I have entered the settings as described, but I get “Request failed with status code 500”
and in the NextCloud logs I get;

Horde_Imap_Client_Exception_ServerResponse: You do not have adequate permissions to carry out this operation.

And using which configuration?

exactly as shown by mrmarkuz above.

mailclient in nextcloud has a problem with public mailboxes, nethserver is creating a public junk mailbox wich in my case is causing trouble with some mailclients

It seems the problem still persists. I cannot connect too.

Did you solve the problem?

I added the user with r/w access to the public mailbox via the new admin frontend but still the same error.

“Request failed with status code 500”

The settings used are the same @mrmarkuz used above
Nethserver is fully patched and nextcloud is v18.0.0.10