1

Topic: Shared folders are not shown

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.3.2 OPENLDAP edition
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version: Ubuntu 18.04.5 LTS
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): LDAP
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hi,

i have tried to share some mail folders. I have done this with SOGo. everything seems OK, even when I check the permission settings with dovecot.
But nether SOGo nor my mail client shows me the shared folder.

Any help would be appreciated.

Thanks in advance
Günther

2

Re: Shared folders are not shown

Please turn on debug mode in Dovecot and reproduce the same issue, try to figure out why it happened based on the log:
FYI: https://docs.iredmail.org/debug.dovecot.html

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

3 (edited by guenther 2021-03-16 18:57:34)

Re: Shared folders are not shown

ZhangHuangbin wrote:

Please turn on debug mode in Dovecot and reproduce the same issue, try to figure out why it happened based on the log:
FYI: https://docs.iredmail.org/debug.dovecot.html

OK.
the logs seem OK, except this entry

imap(guenther@yyy.yyy): Debug: shared: Tried to access mails of nonexistent user testuser_mail@yyy.yyy

I listed the complete mailbox:

dovecot mailbox list -u guenther@yyy.yyy

Trash
Sent
Drafts
Junk
Shared
Shared/testuser_mail@yyy.yyy
Shared/testuser_mail@yyy.yyy/Sent
INBOX

...and here ist is.

But the shared folders are nether shown in my mail Client nor in SOGo.

When I try to list the  maildir of user guenther@yyy.yyy in SOGo the log writes the following entries:

imap(guenther@yyy.yyy): Debug: Quota warning: bytes=0 (100%) messages=0 reverse=no command=quota-warning 100 testuser_mail@yyy.yyy
Quota warning: bytes=0 (99%) messages=0 reverse=no command=quota-warning 99 testuser_mail@yyy.yyy
Quota warning: bytes=0 (95%) messages=0 reverse=no command=quota-warning 95 testuser_mail@yyy.yyy
Quota warning: bytes=0 (90%) messages=0 reverse=no command=quota-warning 90 testuser_mail@yyy.yyy
Quota warning: bytes=0 (85%) messages=0 reverse=no command=quota-warning 85 testuser_mail@yyy.yyy
dict quota: user=testuser_mail@yyy.yyy, uri=proxy::quotadict, noenforcing=0
shared: Tried to access mails of nonexistent user testuser_mail@yyy.yyy
maildir++: root=/var/run/dovecot/user-not-found/testuser_mail@yyy.yyy, index=, indexpvt=, control=, inbox=/var/run/dovecot/user-not-found/testuser_mail@yyy.yyy, alt=
Namespace : /var/run/dovecot/user-not-found/testuser_mail@yyy.yyy doesn't exist yet, using default permissions
Namespace : Using permissions from /var/run/dovecot/user-not-found/testuser_mail@yyy.yyy: mode=0700 gid=default

4

Re: Shared folders are not shown

It says user "testuser_mail@yyy.yyy" doesn't exist.

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

5

Re: Shared folders are not shown

ZhangHuangbin wrote:

It says user "testuser_mail@yyy.yyy" doesn't exist.

;-)

of course, but the user does exist... really ;-)

dovecot mailbox list -u testuser_mail@yyy.yyy
SharedFolder
Trash
Trash/TestFolder
Sent
Drafts
Junk
Shared
Shared/guenther@yyy.yyy
Shared/guenther@yyy.yyy/CRM
Shared/guenther@yyy.yyy/IKS
INBOX

6

Re: Shared folders are not shown

Fixed (with a support ticket).

The cause is mail user account missed LDAP attribute/value pair: "enabledService=imap".
I guess you disabled insecure IMAP access with iRedAdmin-Pro? but since you have "ssl = required" in /etc/dovecot/dovecot.conf, secure connections are required for imap/pop3 services, so no need to disable insecure imap access with iRedAdmin-Pro (it removes "enabledService=imap").

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

7

Re: Shared folders are not shown

Hi,

thanks a lot.

Do you mean the

"Disabled mail services" entry in iRedAdmin-Pro "Advanced" domain settings menu?

[x] Sending mails via SMTP 
[ ] Sending mails via SMTP over TLS/SSL 
[x] Fetching mails via POP3 
[x] Fetching mails via POP3 over TLS/SSL 
[x] Fetching mails via IMAP 
[ ] Fetching mails via IMAP over TLS/SSL 
[ ] Customize mail filter rule
[ ] Customize mail filter rule over TLS/SSL 
[ ] SOGo Groupware (Calendar, Contacts, Tasks, ActiveSync)

8

Re: Shared folders are not shown

guenther wrote:

Do you mean the
"Disabled mail services" entry in iRedAdmin-Pro "Advanced" domain settings menu?

Exactly.

if you uncheck "Fetching mails via IMAP", it removes LDAP attribute/value pair "enabledService=imap". This causes the issue.

----

Buy me a cup of coffee ($5) to support iRedMail:

buy me a cup of coffee

9

Re: Shared folders are not shown

thank you.

Shared folder work perfectly now.