Hi all
I install Mail App on Nextcloud and if i try to add email account i receive this error “Unexpected error during account creation”
I enable debug mode in Nextcloud and if i check the log i have this error:
[mail] Errore: IMAP error synchronizing account 14: You do not have adequate permissions to carry out this operation.
If i check this log /var/lib/nethserver/nextcloud/horde_imap.log
S: * LIST () “/” Public
S: * NO [NOPERM] Permission denied
S: * LIST () “/” Public/Junk
S: * NO [NOPERM] Permission denied
I found another thread on Github for this problem:
opened 08:22AM - 06 May 19 UTC
bug
1. to develop
When connecting to a mailbox, on a NethServer managed Centos 7 / Dovecot imap se… rver with Shared Mailbox enabled, the client can't connect and fails with `You do not have adequate permissions to carry out this operation.`
It turned out that for whatever reason the `Public` folder containing the shared mailboxes is not accessible to anyone; only its subfolder are.
```
# telnet localhost 143
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE IDLE STARTTLS AUTH=PLAIN AUTH=LOGIN] Dovecot ready.
. LOGIN matthieu@mydomain.tld password
. STATUS Public (MESSAGES)
. NO [NOPERM] Permission denied (0.001 + 0.000 secs).
```
The horde client doesn't seem to like that.
If there are shared mailboxes configured, one cannot configure the mailbox, it fails silently without any error message displayed (there was one with 0.11, not anymore with 0.14). In the log : `Horde_Imap_Client_Exception_ServerResponse: You do not have adequate permissions to carry out this operation.`
If the shared mailboxes are disabled, one can configure the mailbox.
If the shared mailboxes are enabled back, an exclamation mark appears in front of the account name and the account settings are displayed.
IMAP log :
![](https://user-images.githubusercontent.com/1886799/57179232-bea49280-6e7b-11e9-8dca-ccc81bda6f61.png)
### Mail app
**Mail app version:** 0.14.0
**Mailserver or service:** local dovecot server
### Server configuration
**Operating system**: Centos 7.6 / Nethserver 7.6
**Web server:** Apache
**Database:** MariaDB
**PHP version:** 7
**Nextcloud Version:** 16
#### Client configuration
**Browser:** Safari
**Operating system:** OSX
<bountysource-plugin>
---
Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/73765835-mail-can-t-connect-when-user-has-no-permission-on-one-of-the-folders?utm_campaign=plugin&utm_content=tracker%2F44154351&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F44154351&utm_medium=issues&utm_source=github).
</bountysource-plugin>
Seems the problem are permission on Shared Folder is there a fix or possible to disable?
Thanks
mrmarkuz
(Markus Neuberger)
February 15, 2022, 11:19am
2
Yes, you need to set permissions:
Please try the following to set ACLs for public folder and then try again to configure Nextcloud Mail.
doveadm acl set -A Public authenticated lookup read
I found another thread about the Nextcloud error and I think @thorsten is right here:
1 Like
@mrmarkuz
Hi thank you, now it works
1 Like