Nextcloud version : 19.0.2
Operating system and version: Ubuntu 20.04
I cannot get Mail to work. On the configuration screen I get âCreating account failed: Could not connect to IMAPâ (There is not more info in the Settings->Log Screen either)
I tried to setup a Gmail account (with one time password) and a completely different IMAP server (Protonmail Bridge) with all possible combinations of encryption (SSL/TLS and STRATTLS), without any luck.
I then installed RainLoop to crosscheck and was able to connect both accounts without a problem.
This leads me to believe that the Mail app has an issue (or are there more configuration options I do not know about?).
I extensively searched the web and this forum to no avail, so any help would be greatly appreciatetd!
Try to reproduce one more time, but open the browser dev console. Then inspect the request that has the error (HTTP 4xx return code IIRC) and share a screenshot of the response JSON.
I added the following two lines to my config.php:
âapp.mail.imap.timeoutâ => 40,
âapp.mail.smtp.timeoutâ => 20,
restarted apache (just to be sure) and reloded the email config page. Did not work⊠But it took only a couple of seconds (ca. 6) before the error message came, so probably it is not the timeout?
I got a new error message though:
âCreating account failed: 4.7.0 Try again later, closing connection.â
This was trying to connect to gmail servers (imap with SSL/TLS, smtp with STARTTLS)
I also tried connecting from a command line on the server with the command âopenssl s_client -connect imap.gmail.com:993â, which worked, so the server should be reachable.
Hi Alex
After trying quite a while and not getting anywhere, I took the nuclear option and I am now running my own mailserver (mailinabox). Everything works nowâŠ
I know, hardly qualifies as a solution
I have the same issue. When i upgraded from 19.0.4 to 20.0.1(today) mail app was working fine after a while i saw an update to mail app to v1.5.1,
Great i say lets update it.
After update i go to mail tab, asks for password again, Ok no problem.
i create new app password on outlook and login.
Stuck on loading messages.
Deleted the mail account, run âocc mail:clean-upâ, disabled and removed app, reinstalled, added the account again, but i still get âLoading messagesâ.
Opened the database with pgAdmin, the account is added, but no new messages appear on the db.
Tried running âocc mail:account:sync 10 -fâ (my current account id) and got:
[debug] account is up to date, skipping mailbox sync
In MailboxLockedException.php line 33:
331 is already being synced
After 3 hours i still get â331 is alerady being syncedâ so it doesnât do anythingâŠ
Just to verify it, i also have a second docker for tests, I fire up the second docker.
Already on 20.0.1, Mail working, update to 1.5.1 mail broke.
Now iâm thinking about it⊠I should begin a new post, so its not mixed up with the OP issue.
Thanks for the reply. After this experience, I am fairly turned off by NextCloud in general. I came in with fairly high h expectations, and in general, I am pretty disappointed. Ohh well, that is how Open Source sometimes goes.
Iâve said it before and Iâll say it again: the locked mailbox is not an error. Iâm sure youâll understand the concept of locking in software. we need this to prevent conflicts of concurrent requests. If your mailbox is stuck being locked, some other error occurred that prevent the release of the lock.
Take a closer look at your nextcloud.log. If there was an error, itâs logged there 99% of the time.
Again, the locked mailbox is just a symptom. Itâs not the problem.
I have the same problem, Mail cannot connect to my IMAP server, which is an external commercial provider, Thunderbird can use it fine and I am using the same settings. In the dev console I get an error about the mailbox being locked. I saw the following error in the nextcloud logs in case it is relevant. With log level set to info I donât see anything else from Mail. This might have appeared after I tried inputting my mail server settings again.
[index] Error: Exception: Argument 1 passed to OCA\Mail\Service\Quota::__construct() must be of the type int, float given, called in /var/www/nextcloud/apps/mail/lib/Service/MailManager.php on line 468 at <<closure>>
0. /var/www/nextcloud/lib/private/AppFramework/App.php line 152
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Mail\Controller\AccountsController {}, "getQuota")
1. /var/www/nextcloud/lib/private/Route/Router.php line 309
OC\AppFramework\App::main("OCA\\Mail\\Cont ... r", "getQuota", OC\AppFramework\ ... {}, {id: "1",_route: ... "})
2. /var/www/nextcloud/lib/base.php line 1008
OC\Route\Router->match("/apps/mail/api/accounts/1/quota")
3. /var/www/nextcloud/index.php line 37
OC::handleRequest()
GET /nextcloud/index.php/apps/mail/api/accounts/1/quota
from XXXXXXX by XXXXX at 2021-03-24T08:12:15+00:00